Skip to main content

Git: Changes & commits

The Git view has two tabs, Changes and History. This page covers Changes.

┌ Changes ②1 ┬ History ┐
│ [ Filter ] ← narrow the list by path
│ ☑ 21 changed files ▤ ← select all · "show all changes"
├────────────────────────────────┤
│ ☑ lib.rs crates/git/src M │
│ ☑ branch.rs crates/git/src A │ ← click a file: its diff opens in the main area
│ ☐ notes.md A │ ← unticked: not in the next commit
├────────────────────────────────┤
│ Summary (required) │
│ Description ✦ ⚙ │ ← ✦ writes both with AI
│ [ Commit 20 files to main ] │
└────────────────────────────────┘

The list of changes​

Every changed file has a checkbox and a mark:

MarkMeaning
Anew (untracked or added)
Mmodified
Ddeleted
Rrenamed
!conflicted (see merging)
  • Click a file to see its diff against the last commit in the main area, in place of the editor. Staged and unstaged changes are shown together, and a new file is shown as all added. Choosing another file replaces the diff; no tab is added. It updates as you save.
  • Double-click a file to open the file itself in the editor, with the Explorer.
  • Filter narrows the list by path (case-insensitive). The counts and the commit button still refer to all changes.
  • The list is virtualized: only the rows in view are built, so a repository with thousands of changed files (for example an un-ignored target/ folder) stays smooth.
  • Images (PNG, JPEG, WebP, BMP, TIFF) show a preview; modified images show the original and the current version side by side. For an SVG, Preview renders the last commit and the working copy side by side, and Source returns to the text diff.
  • Colors in diffs follow the file's language, including Kotlin and Cargo.lock.

The file menu​

Right-click a file:

ItemDoes
Open in EditorOpens the file (disabled for a deleted file).
Show in FinderReveals it. For a deleted file: Open Containing Folder.
Copy Relative PathCopies the path from the repository root.
Ignore File / Ignore Folder / Ignore All .ext FilesAppends a rule to the repository's .gitignore (/path/file.rs, /dir/, *.ext). A rule already in the file is not added twice. Files Git already tracks stay tracked, as with any ignore rule.
Discard Changes…Asks first, then throws away every change to the file and deletes it if it is new.

Right-click the Show all changes button (top right of the list) for Discard All Changes….

Show all changes​

The button in the Changes header opens every file's diff in one scrollable panel.

  • A bar on top shows the totals and has Jump to file (a menu with each file's line counts; reviewed files are checked), Next unviewed, and buttons to collapse or expand every file.
  • Clicking a file in the list scrolls the panel to it.
  • Each file header shows the name with its folder, can collapse its diff, copy its relative path, and mark the file Viewed, and shows added and removed line counts.
  • Viewed marks are kept while the project is open and are independent of the checkboxes used to select files for a commit.

Staging part of a file​

  1. Open a file in Changes and choose Unstaged to compare the index with the working copy.
  2. Choose Stage Hunk and pick the range shown in the diff. Stage File adds the whole file.
  3. Switch to Staged to compare the last commit with the index. Use Unstage Hunk or Unstage File to move changes back.
  4. Review what is staged and choose Commit Staged. The button appears only while a file is staged in part (its row says Partially Staged); a fully staged file is committed with the normal Commit button. This includes staging done in the terminal and leaves the other working-copy edits in place.

New files, deletions, renames, and binary or mode changes use the whole-file buttons.

Committing​

  1. Tick the files that belong in the commit (the header checkbox ticks them all; it shows a mixed state when only some are ticked).
  2. Write a Summary (required) and, if you like, a Description.
  3. Press Commit N files to <branch>.

Ticking a file includes its whole working copy, including any unstaged edits to that file. Staged changes for unticked files remain staged and are kept out of the commit. Repository hooks can edit the message or stage fixes, and Git applies your signing configuration. If a hook or signing rejects the commit, the app shows Git’s output and keeps the commit draft.

A commit needs a Git author identity. The commit button is disabled when the summary is empty, no file is selected, or a Git operation is in progress.

Commit options (right-click the Commit button)​

ItemDoes
Amend Last CommitReplaces the last commit with one that also contains the ticked files and the message in the box. Leave the summary empty to keep the old message. A commit a remote branch already has is refused: that would rewrite published history.
Add Co-author ▸Lists people from recent history (not you). Choosing one adds a Co-authored-by: Name <email> line to the description, once.

Writing the message with AI​

The sparkle button beside the description writes the summary and description from the diff of the ticked files, as a Conventional Commits message. Nothing is committed by generating. Configure the provider, model and style with the settings button beside it (see Commit messages). With Push after commit on, the commit button pushes right after committing.

Keeping it fresh​

The change list refreshes when you return to the window and every 2 seconds while it is open (every 10 seconds while another window is in front), so edits made in another app show up by themselves. The History list is read again only when a commit is made or the branch or its upstream moves. Switching between Changes and History reads nothing while that is so.

Interrupted Git operations​

The Git toolbar shows an operation stopped by conflicts. For a merge, choose Resolve to open the resolver. For a rebase, cherry-pick, or revert, resolve the files and stage them in the terminal before choosing Continue. Skip leaves out the current commit. Abort asks Git to return to the state before the operation.