git状态不显示权限更改 [英] git status not showing permission changes
本文介绍了git状态不显示权限更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在git存储库中,我更改了文件权限.如果我运行命令
In a git repository I changed file permissions. If I run the command
git status
或
git status -v
我看不到任何变化.它只显示
I do not see any changes. It only shows
On branch xxxxx
nothing to commit, working directory clean
但是我确实将文件和文件夹的权限从644
更改为777
.如何告诉git向我显示权限更改?
But I did change permissions on files and folders from 644
to 777
. How can I tell git to show me permission changes?
( git version 2.2.1 and filemode = true)
推荐答案
您可以启用文件模式,Git还将跟踪文件权限更改.
You can enable filemode and Git will also track file permission changes.
git config core.filemode true
这篇关于git状态不显示权限更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文