Show git diff, ignoring file permission changes?

邮差的信 提交于 2019-11-28 06:17:25

This will tell git to ignore permissions:

git config core.filemode false

to filter them in result of diff but not ignore them

git filter-branch -f --tree-filter 'find * -type f | xargs chmod 644 ' -- --all
Zed
git diff -G.

Note: the period at the end is part of the command.

You will need (I think) at least Git version 1.7.10 for this to work. 1.7.2 is too old, at least.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!