Question : git diff without change mode
Answered by : angry-alligator-kgrm82bi1nj6
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
Source : https://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes | Last Update : Fri, 15 Oct 21