Diff

gd opens the diff overlay for the session's worktree: what changed, file by file, hunk by hunk, with word-level highlights.

The diff overlay: files on the left, the hunks of the current file on the right

Key
⇥ / ⇧⇥ Scope: all, committed, staged, unstaged
c One commit at a time (cycles through the branch's commits)
]f / [f Next / previous file
n / N Next / previous hunk
j / k Move by line
gd or ⎋ Close

See Reviewing changes for the split view and acting on a hunk.

Previous
Cleanup
Next
Reviewing changes
  • View as Markdown
  • Edit this page
  • Home

  • Getting started
    • Installation
    • The first run
    • The tutor
    • Your first session
  • Concepts
    • Sessions
    • Agent states
    • Worktrees
    • Modes
  • Sessions
    • The sidebar
    • Moving around
    • Typing into agents
    • Panes and tabs
    • The inspector
    • Pin, park, close, delete
    • Resuming sessions
    • Filtering
  • Start work
    • Choosing repos
    • Branch names
    • Agent and options
    • From anywhere
    • From GitHub
    • Starting again
  • Agents
    • Hooks
    • Reading the screen
    • Custom agents
  • GitHub
    • Inbox
    • Issues
    • Pull requests
    • Reading PRs and issues
    • Review feedback
    • Tracking PRs
  • Worktrees
    • Repos
    • Importing
    • Removing
    • Cleanup
  • Diff
    • Reviewing changes
  • History
    • Reopening
  • Keyboard
    • Views
    • Hints
    • The command line
    • Selecting
    • Mac shortcuts
    • Customizing keys
    • Key reference
  • Outside the window
    • The menu bar
    • The Dock
    • Global shortcuts
  • Configuration
    • Settings
    • config.toml reference
    • Finding git and gh
  • Reference
    • The heed CLI
    • Files and locations
    • Environment variables
  • Troubleshooting