Changes and committing

Changes shows what you changed since the last commit, and is where you commit. Open it with ⌘2.

Stage what goes in the commit

  • Unstaged files are on top, Staged files below. Click a file's circle to move it between the two, or use Stage all and Unstage all.
  • In the diff, Stage hunk takes a whole block. To take only some lines, click the circles beside them.
  • The diff can be Unified or Side by side. Added and removed lines keep their + and − signs.

Select several files with ⌘-click or ⇧-click to stage, stash or discard them together.

Discard changes

Discard (on a file, a hunk or selected lines) always asks first, and keeps a copy: a banner offers Undo right after.

Commit

  1. Type a short subject. The counter shows its length against the limit in Settings › Commit editor.
  2. Add a description if it helps.
  3. Choose Commit (⌘↵) or Commit and push.

Tick Amend previous commit to replace the last commit instead (Working Copy › Amend Last Commit does the same).

A message written for you

With an AI assistant connected, the Suggested message card proposes a message from your staged changes (⌥⌘G). Use puts it in the box; Regenerate asks again. You see what is sent before it goes.

More on a file

Right-click a file to open it, show it in Finder, see its history or blame, compare it, ignore it, stop tracking it, or move it to the Trash.