我有一个子模块git diff报告为dirty. 因此,我cd进入子模块的存储库,检查git status并查看一个文件报告为已更改。
# 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
做git add Main.cs或git add --force Main.cs什么都不做。没有显示任何消息,并且 git status 报告完全相同。
此文件也不匹配.gitignore.
我什至不知道从这里去哪里!
git version 1.7.11.msysgit.1