Question
git diff 文件比较发现内容没有变化,但却提示文件被修改,使用git diff提示old mode 100755 new mode 100644
解决办法
一般是UNIX系统下文件mode发生了变化,755表示rwxr-xr-x,644表示rw-r--r--
也可以通过修改git配置来避免此问题
git config core.filemode false
参考:
1.https://stackoverflow.com/questions/1257592/how-do-i-remove-files-saying-old-mode-100755-new-mode-100644-from-unstaged-cha