📜  不更改模式的 git diff - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:34.508000             🧑  作者: Mango

代码示例1
git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs -d'\n' chmod +x
git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs -d'\n' chmod -x