[译]如何去除Git的unstaged的文件提示“old mode 100755 new mode 100644”?

原文来源:https://stackoverflow.com/questions/1257592/how-do-i-remove-files-saying-old-mode-100755-new-mode-100644-from-unstaged-cha
问:
出于某种原因,当我最初从存储库中获取我的git项目时,我在工作副本中获得了大量文件,这些文件没有对它们进行任何可识别的更改,但是仍然显示在unstaged changes 区域中。
我在Windows XP上使用Git Gui,当我去查看文件时看看有什么变化。 我只看到:

old mode 100755  
new mode 100644 

有人知道这是什么意思么?
我该将这些文件从unstaged changes列表中去除? (这一百多个文件实在让人讨厌,我只想看到最近编辑过的文件并想要提交它们)。

答:
这看起来像你的unix文件权限模式(755 = rwxr-xr-x,644 = rw-r - r--) - 旧模式包含+ x(可执行)标志,新模式不包括。

msysgit的建议将core.filemode设置为false以解决问题:

git config core.filemode false
原文地址:https://www.cnblogs.com/everfight/p/git_mod_change.html