Skip to content

Instantly share code, notes, and snippets.

@qa1
Created February 26, 2020 07:41
Show Gist options
  • Save qa1/ca02a96ff9f49bd8bd90700f3f0b2d57 to your computer and use it in GitHub Desktop.
Save qa1/ca02a96ff9f49bd8bd90700f3f0b2d57 to your computer and use it in GitHub Desktop.
git config --global --add alias.permission-reset '!git diff -p -R --no-color | grep -E "^(diff|(old|new) mode)" --color=never | git apply'
// use like git permission-reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment