I have a submodule that git diff is reporting as dirty. So, I cd into the submodule’s repo, check the git status and see that one file is reporting as changed.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Main.cs
Doing a git add Main.cs or git add --force Main.cs does nothing. No messages are shown and git status reports the exact same.
Also this file doesn’t match anything in .gitignore.
I don’t even know where to go from here!
git version 1.7.11.msysgit.1
Try one of this: