Skip to content

Instantly share code, notes, and snippets.

@0x4007
Last active January 14, 2020 16:28
Show Gist options
  • Save 0x4007/b105d3cd6b866cf8a8d4d73cff694c0a to your computer and use it in GitHub Desktop.
Save 0x4007/b105d3cd6b866cf8a8d4d73cff694c0a to your computer and use it in GitHub Desktop.
git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs chmod +x
git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs chmod -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment