赞
踩
有的时候将git目录从一个电脑备份到另一个电脑时使用git status发现会有很多修改
实际上去查看时发现仅仅只是文件权限的变更 如下
hhh@debian:$ git diff ./xx
diff --git a/xx bxx
old mode 100755
new mode 100644
如下即可忽略文件文件模式的更改
$ git config core.filemode false
执行之后可以看到git文件多了一行
hhh@debian:$ cat ./.git/config
[core]
repositoryformatversion = 0
filemode = false [这一行是多的 括号里的内容是我自己加在这里注释说明的]
bare = false
logallrefupdates = true
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。