Search code examples
gitgit-tfs

git reset --hard isn't resetting the files


I'm using git-tfs and I'm having issues with files changing arbitrarily.

When I run

git reset --hard

it says I'm at the appropriate commit, but that I still have pending changes. Can anyone explain what's going on here?

enter image description here

And here's my config

enter image description here


Solution

  • My guess is that this has to do with core.autocrlf changing your line endings. Have you tried with core.autocrlf=false?

    You may have to delete and checkout the files again, or even try git tfs clone again from scratch with core.autocrlf=false (globally).