Friday 8 June 2018

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 .

No comments:

Post a Comment

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...