这是一个创建于 4105 天前的主题,其中的信息可能已经有所发展或是发生改变。
git checkout也不行,总有3个文件没有被还原。
这3哥文件已跟踪,git status -s显示第二列M。
第 1 条附言 · 2013-11-23 19:21:37 +08:00
问题解决,参见:http://stackoverflow.com/questions/11383094/unstaged-changes-left-after-git-reset-hard
3 条回复 • 2019-11-16 23:37:41 +08:00
 |
|
1
4code1 2013-11-24 11:41:43 +08:00
试试 git clean -dxf
|
 |
|
2
msg7086 2013-11-24 12:33:24 +08:00
多数就是行尾cr/lf的问题。其实diff一下就知道问题在哪了
|
 |
|
3
chengcheng222e 2019-11-16 23:37:41 +08:00
git config core.filemode false 这个搞定
|