Skip to content

Instantly share code, notes, and snippets.

@manuquentin
Created September 5, 2013 05:24
Show Gist options
  • Save manuquentin/6446360 to your computer and use it in GitHub Desktop.
Save manuquentin/6446360 to your computer and use it in GitHub Desktop.
Reset git file permissions
git config --global --add alias.permission-reset '!git diff -p -R | grep -E "^(diff|(old|new) mode)" | git apply'
git permission-reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment