Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

diff

Open the Diffity diff viewer in the browser.

gwt diff [reference] [--uncommitted]

Options

OptionDescriptionDefault
referenceGit reference to diff againstHEAD
--uncommittedShow only uncommitted changesfalse

Examples

gwt diff                # Diff against HEAD
gwt diff main           # Diff against main branch
gwt diff abc1234        # Diff against a specific commit
gwt diff --uncommitted  # Only uncommitted changes

Prerequisites

Requires Node.js (npx). If not available, shows:

Diffity not available. Install Node.js and run: npx diffity

See also