`git mergetool` says `The merge tool vimdiff is not available` or leaves `*.orig` files everywhere.
BeginnerTroubleshootingMerge and Rebase Problems
Answer
Likely causes → The configured tool is not installed or on PATH, and mergetool keeps backups by default.
Diagnose →
git config --get merge.tool
git mergetool --tool-help
Fix → Install and set a tool, for example git config --global merge.tool vscode with mergetool.vscode.cmd 'code --wait --merge $REMOTE $LOCAL $BASE $MERGED'. Stop backup files: git config --global mergetool.keepBackup false. Remove existing ones: git clean -n '*.orig' then -f.
Prevent → Add *.orig to the global ignore file.
More on Merge and Rebase Problems
Production failed to start, and the file contains `<<<<<<< HEAD` lines that were committed.Beginner`error: you need to resolve your current index first`Beginner`fatal: You have not concluded your merge (MERGE_HEAD exists).`BeginnerRebase stops: `error: could not apply 1a2b3c4... Add retry` and later `No changes - did you forget to use 'git add'?`Intermediate`fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.`Intermediate`CONFLICT (modify/delete): config/old.yml deleted in HEAD and modified in feature.`Intermediate