Git Config Cookbook/Launch mergetool

Open merge tool for unresolved conflicts.

Section: Diff and Merge Tools

Launch mergetool

bash
bash
git mergetool

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Diff and Merge Tools
Use VS Code merge tool
Set preferred merge tool name.
OpenIn sheetbashsame section
Configure VS Code merge command
Define command for the merge tool.
OpenIn sheetbashsame section
Disable difftool prompt
Skip confirmation before launching external difftool.
OpenIn sheetbashsame section
Launch difftool
Run configured external diff viewer.
OpenIn sheetbashsame section
Set repo-specific user name
Override global identity in one repository.
Require fast-forward pulls
Fail pull if it would create a merge commit.