Skip to content

Instantly share code, notes, and snippets.

@Kukanani
Last active March 9, 2018 14:03
Show Gist options
  • Save Kukanani/f8b3b8e9709ceac7289b6c0d8654ef0b to your computer and use it in GitHub Desktop.
Save Kukanani/f8b3b8e9709ceac7289b6c0d8654ef0b to your computer and use it in GitHub Desktop.
Reset Git file permissions
git diff --no-ext-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