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