有时 git diff 执行显示文件内容没变化,但是有 old mode xxx new mode,原因是文件的权限,被chmod变化了,这种变化也被 diff 识别出来了,让git忽略掉文件权限检查可以使用一下命令:

git config core.fileMode false

相关文章:

  • 2021-06-25
  • 2022-02-07
  • 2021-08-17
  • 2021-12-17
  • 2021-09-11
猜你喜欢
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案