I've recently pulled down the latest version of a branch and it's created a folder of files which are in the last commit, however git seems to think all these files are still modified and none of the following will 'reset' the files to the latest commit, making git think there aren't any changes:
git reset --hard
git reset --hard origin/production
git checkout --
git checkout-index
rm -rf lib/problem-folder
git rm --cached -r lib/problem-folder
git stash
git stash drop
git config core.filemode false
git status --porcelain | grep "^ M" | cut -c4- | xargs rm
git checkout -- .
And there is no .gitattributes file.
If I move HEAD back 2 commits (one merge, one actual commit) then the files are fine, so I guess it must be an issue with the commit? It's the production branch and has already been merged into some other branches (don't ask) so I don't really want to have to re-do the commit