Git Config Cookbook/Launch difftool

Run configured external diff viewer.

Section: Diff and Merge Tools

Launch difftool

bash
bash
git difftool main..feature/my-change

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
Disable difftool prompt
Skip confirmation before launching external difftool.
OpenIn sheetbashsame section
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
Launch mergetool
Open merge tool for unresolved conflicts.
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.