如何让Git忽略文件模式(chmod)的变化? - How do I make Git ignore file mode (chmod) changes?

问题:

I have a project in which I have to change the mode of files with chmod to 777 while developing, but which should not change in the main repo. 我有一个项目,我必须在开发时将chmod的文件模式更改成777,但在主仓库中不该该更改。 url

Git picks up on chmod -R 777 . Git选择了chmod -R 777 . and marks all files as changed. 并将全部文件标记为已更改。 Is there a way to make Git ignore mode changes that have been made to files? 有没有办法让Git忽略对文件进行的模式更改? spa


解决方案:

参考一: https://stackoom.com/question/6dBU/如何让Git忽略文件模式-chmod-的变化
参考二: https://oldbug.net/q/6dBU/How-do-I-make-Git-ignore-file-mode-chmod-changes
相关文章
相关标签/搜索