原文来源: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

相关文章:

  • 2022-01-22
  • 2022-01-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-10-18
  • 2021-08-31
猜你喜欢
  • 2022-02-11
  • 2021-08-24
  • 2022-12-23
  • 2021-11-28
  • 2021-05-17
  • 2021-08-07
相关资源
相似解决方案