All of the files in my repository show up as modified in the index. I have no idea how this came about and I have been trying to remove the modified files from the index but I am unable to do so.
I tried the following:
git checkout -- .
git reset --hard HEAD
I've even tried to checkout a file individually, but even so it still shows as modified when I do git status
afterwards.
git checkout -- path/to/file.txt
Do you have any ideas as to what is going on?