git difftool HEAD~1 HEAD -- src/app.js

Category: Git - Core

git difftool HEAD~1 HEAD -- src/app.js

Open a diff in an external tool

Launches your configured diff tool, like meld, vimdiff, or VS Code, for the given range instead of printing a text patch. Configure the tool with git config diff.tool. It is best for large or visual review sessions.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.