2014-11-21 138 views

回答

4

git config core.fileMode false

這告訴混帳忽略EXEC位的變化。

+0

謝謝。有效。 – Sambit 2014-11-21 09:45:21

3

如果你想忽略文件權限的改變,您可以添加:

git config core.fileMode false 

到〜/的.gitconfig。請參閱http://git-scm.com/docs/git-config

core.fileMode 

If false, the executable bit differences between the index and the working tree are ignored; useful on broken filesystems like FAT. See git-update-index[1]. 

The default is true, except git-clone[1] or git-init[1] will probe and set core.fileMode false if appropriate when the repository is created.