git: git diff “old mode 100755 new mode 100644”

来源:互联网 发布:qt 界面编程教程 编辑:程序博客网 时间:2024/05/16 15:36

http://blog.csdn.net/razy_monkey/article/details/53188145



If this is common and the filemodes are not important for this project we can simply tell Git to ignore this.

Default

[plain] view plain copy
  1. git config core.filemode false  

Only for this project edit .git/config

[plain] view plain copy
  1. [Core]  
  2. filemode = false  

And in case we do need to check in single filemode changes the following works

[plain] view plain c
  1. git update-index --chmod=(+|-)x path/to/file  


原创粉丝点击