Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git diff -p \
- | grep -E '^(diff|old mode|new mode)' \
- | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
- | git apply
- https://www.builtinbruges.com/2013/03/git-tricks-permission-reset/
- git config --global --add alias.permission-reset '!git diff -p | grep -E "^(diff|old mode|new mode)" | sed -e "s/^old/NEW/;s/^new/old/;s/^NEW/new/" | git apply'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement