問題:
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