Created
May 10, 2019 08:34
-
-
Save nmyers/d5e0a57c637045be85fd4deafdd001d4 to your computer and use it in GitHub Desktop.
Patch permission changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#see https://stackoverflow.com/questions/2517339/how-to-restore-the-permissions-of-files-and-directories-within-git-if-they-have | |
git diff -p -R --no-color \ | |
| grep -E "^(diff|(old|new) mode)" --color=never \ | |
| git apply |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment