Git在更改文件权限后将所有文件显示为已修改 [英] Git shows all files as modified after changing file permission
本文介绍了Git在更改文件权限后将所有文件显示为已修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Ubuntu OS上将文件权限更改为非裸露git仓库的777.之后,存储库中的所有文件都显示为已修改.我不想再次添加所有文件并提交.我要提交已编辑的文件.有什么办法可以解决这个问题?
I changed the file permission to 777 of a non-bare git repository on Ubuntu OS. After that all files in the repository is showing as modified. I don't want to add all files again and commit. I want to commit the files that I have edited. Is there any way to fix this?
推荐答案
git config core.fileMode false
这告诉git忽略执行位更改.
This tells git to ignore exec-bit changes.
这篇关于Git在更改文件权限后将所有文件显示为已修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文