2014-11-21 136 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.