git diff -p \
| grep -E '^(diff|old mode|new mode)' \
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
| git apply
Created
October 9, 2021 07:59
-
-
Save majidalaeinia/d03719f9e27da046759eb10f18fee133 to your computer and use it in GitHub Desktop.
Git Revert File Permissions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment