Avoid orphaned .orig files after resolving conflicts from a Git merge
It's the git mergetool that produces these files, you can disable them with this command:
git config --global mergetool.keepBackup false
See the git-config manpage:
I think this should work:
git status -su | grep -e"\.orig$" | cut -f2 -d" " | xargs rm
See https://stackoverflow.com/a/10744524/670915 for details