我运行了以下
chmod -R 777 directory
所有权限都已更改
当我跑步时
git status
我知道所有文件都已修改过。
所以我跑了
git config core.fileMode false
但它似乎没有在我的redhat上工作,我仍然在运行git status
如何忽略模式更改?
我在ubuntu机器上试过它并且可以正常工作
我在我的ubuntu机器上运行git版本1.7.0.4 我的红帽上的git版本1.7.1
任何可能的解决方案
答案 0 :(得分:1)
我没有收到详细信息,但你会有 $ HOME / .gitconfig ,. git / config 或.gitignore 并设置'core.filemode = true'那里。
检查
$ git config --global -l
检查
$ git config -l|grep core.filemode
这可能会输出多行...最后一行似乎会继续其他行。
有关详细信息,请$ man git