如何忽略Git中的模式更改
Git将跟踪文件和目录的更改,包括通过chmod完成的权限更改。在大多数开发环境中,我倾向于拥有与现场站点上不同的权限集,因此我通常对跟踪权限更改不感兴趣。为了防止git查看文件权限之间的差异,您需要将core.filemode配置选项设置为false。
gitconfigcore.filemodefalse
这是git-config(1)手册页上的条目。
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 setcore.fileModefalse if appropriate when the repository is created.
此信息最初来自Stackoverflow上的这篇文章。我一直都忘记如何做到这一点,因此,为了撰写记忆,我正在写这篇文章。
热门推荐
10 病人祝福语老师寄语简短
11 新娘生孩子祝福语简短
12 婆婆66岁祝福语简短
13 今天孩子高考祝福语简短
14 送彩票生日祝福语简短
15 分别祝福语简短情话英文
16 画室揭牌仪式祝福语简短
17 女友妈妈生日祝福语简短
18 离别赠言离职祝福语简短