Created
January 12, 2012 16:42
-
-
Save seanbehan/1601516 to your computer and use it in GitHub Desktop.
Recursively Delete .Orig Files After Failed Git Merge
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
# recursively delete original files after a git merge failure | |
find . -name *.orig -delete |
recurse deeper: git clean -f */.orig
We must go deeper
$ git clean -f ./**/*.orig
Git clean is recursive. Just do:
git clean *.orig
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or create a alias
then just call