git checkout master error: the following untracked working tree files would be overwritten by checkout

The Solution to git checkout master error: the following untracked working tree files would be overwritten by checkout is


Try git checkout -f master.

-f or --force

Source: https://www.kernel.org/pub/software/scm/git/docs/git-checkout.html

When switching branches, proceed even if the index or the working tree differs from HEAD. This is used to throw away local changes.

When checking out paths from the index, do not fail upon unmerged entries; instead, unmerged entries are ignored.

~ Answered on 2013-11-04 23:00:34


Most Viewed Questions: