Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git diff without change mode

git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs -d'
' chmod +x
git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs -d'
' chmod -x
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #diff #change #mode
ADD COMMENT
Topic
Name
9+9 =