Skip to content

Instantly share code, notes, and snippets.

@wolffan
Created November 20, 2014 16:04
Show Gist options
  • Save wolffan/d231d92e55064adab5f1 to your computer and use it in GitHub Desktop.
Save wolffan/d231d92e55064adab5f1 to your computer and use it in GitHub Desktop.
Remove .orig files with this git hook (copy on ./git/hooks
echo "Looking for .orig files to remove"
pwd=$(pwd)
find . -type f -name \*.orig -exec rm {} \;
echo "Done removing .orig files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment