Category Archives: gitignore

The following untracked working tree files would be overwritten by checkout: .gitignore

Problem :

git.exe checkout master —

error: The following untracked working tree files would be overwritten by checkout:
.gitignore

Please move or remove them before you switch branches.
Aborting

Solution :

try running below commands one by one on your repository

git fetch --all

git reset --hard origin/master
this will reset your .gitignore file or any other file which is conflicting.
hope this helps .

107 total views, no views today