How to delete .orig files after merge from git repository?
you can do:
git config --global mergetool.keepBackup false
For more info, refer to to Git mergetool generates unwanted .orig files
Try git clean
more info you can find here or here
Best solution in this case is to keep it simple and get rid of those files independently of git:
cd /your/repo/directory
find . -name '*.orig' -delete
Alternatively, in Windows/PowerShell, you can run the following command
cd \your\repo\directory
Get-ChildItem -Recurse -Filter '*.orig' | Remove-Item