Git Review

Commit and actions

Stage and commit changes, push and pull, switch and create branches, and stash work from Git Review.

Git Review is not only for looking. You can stage changes, commit them and push them, keep your branch up to date, and manage branches and stashes, all without leaving the pane. Every action refreshes the review and the file list under it.

To open Git Review, see Open Git Review.

The changes tab

Click Changes at the top of the list. The tab shows how many files have changed, for example Changes (3).

Git Review's Changes tab with Staged and Unstaged groups and the commit message area.
Git Review's Changes tab with Staged and Unstaged groups and the commit message area.

Changed files are in two groups:

  • Staged: changes that will go into the next commit.
  • Unstaged: changes you made that are not staged yet, including new files Git does not track yet.

Each file shows a letter for what happened to it: M for modified, A for added, D for deleted, R for renamed, ? for a new file Git does not track yet, and U for a file with a conflict. When nothing has changed, the tab says Working tree clean.

Click a file to see its diff below. A file that has both staged and unstaged changes appears in both groups, and each row shows its own part.

Below the list is the commit area (see Commit your changes).

Stage and unstage files

  • To stage one file, click the Stage button (a plus) at the end of its row in Unstaged.
  • To unstage one file, click the Unstage button (a minus) at the end of its row in Staged.
  • To stage or unstage everything in a group, click Stage All or Unstage All next to the group's title.
  • To work with several files, Command-click or Shift-click them within one group, then click the button on one of the selected rows, or press Space.

A file with a conflict cannot be staged here, because staging it would mark the conflict as resolved. Resolve it in an editor or a terminal first.

Stage part of a file

You can stage, unstage or discard a single change inside a file instead of the whole file.

  1. In the Changes tab, click a file to show its diff.
  2. Click a changed block in the diff, or move to it with ⌘[ and ⌘].
  3. Use the buttons in the bar above the diff:
    • Stage this change (for a file in Unstaged),
    • Discard this change… (for a file in Unstaged; it asks first),
    • Unstage this change (for a file in Staged).

The diff then shows what is left. These buttons are not shown for a new, deleted or binary file, or for a commit's diff in the Commits tab; use the file's own buttons there. If Git changes a file while staging it (for example its line endings), Git Review asks you to stage or discard the whole file instead.

Discard changes

To throw away your unstaged changes to a file:

  1. In Unstaged, click the Discard changes… button (a curved arrow) on the file's row. For a new file the button is Move to Trash….
  2. Read the confirmation and click Discard.

Discarding is recoverable: the file as it was is moved to the Trash first, and then the file goes back to its last committed version (or to its staged version, when part of it is staged). New files are moved to the Trash. Staged changes stay staged; only the unstaged part is discarded.

When you discard a single change with Discard this change…, the confirmation button is Discard Hunk, and the whole file as it was is moved to the Trash first as well.

Commit your changes

  1. Stage the changes you want to commit.
  2. Type a message in the commit field. The first line is the subject; leave a blank line before a longer description.
  3. Click Commit, or press ⌘↩.
In Git Review the changed agent.py is staged, a Conventional Commits message is entered, the commit is made, and Push sends it to the project's remote.

Under the field, a hint shows how many changes are staged and how long the subject is. A subject of 50 characters or fewer reads best; past 72 characters, the hint warns that other tools will cut it.

When a commit cannot be made, the reason is shown instead of the hint, for example Write a commit message first. or Nothing is staged. Stage the changes to commit first. After a successful commit, the message field is cleared and a message such as "Committed: Add evaluation report" appears. If the commit fails, your message is kept.

Git needs to know your name and email address to commit. If they are not set, Git Review says so and nothing is committed. Set them once in a terminal with git config --global user.name and git config --global user.email.

Amend the last commit

To change the last commit instead of making a new one, check Amend before you commit. The last commit's message is loaded into the field (if the field was empty), and the button changes to Amend.

Git Review refuses to amend a commit that is already on a remote branch, because that would rewrite history that other people may have. Make a new commit instead.

Skip hooks

A repository can have hooks: its own checks that run before a commit is made. Git Review runs them, like Git does. If a hook stops the commit, nothing is committed, your message is kept, and what the hook printed appears in a box at the top of Git Review. You can read and copy that text, and close the box with Dismiss output.

To commit without running the repository's commit hooks, check Skip hooks before you commit.

Fetch

Click Fetch to download what is new on the remote. Fetch never changes your files. Afterwards, the down arrow in the header shows how many new commits you can pull.

Fetch is dimmed when the repository has no remote.

Pull

Pull brings the new commits from the remote branch into your branch.

  1. Click Pull.
  2. Git Review asks first, for example Fast-forward main from origin/main?, and tells you how many new commits there are and whether you have local changes.
  3. Click Pull to confirm.
The Pull confirmation.
The Pull confirmation.

Pull only fast-forwards: it never merges, rebases or discards anything. If your branch and the remote have both moved on, Git Review says Your branch and the remote have diverged. and changes nothing. Merge or rebase from a terminal in that case.

Pull is dimmed when the branch does not track a remote branch, or while a merge, rebase, cherry-pick or revert is in progress.

Push

  1. Click Push (or Push 2 when two commits are waiting).
  2. A sheet tells you where your commits go, for example "2 commits to origin/main."
  3. If the branch has never been pushed, it is pushed to the remote under the same name and that becomes its upstream. When the repository has several remotes, choose one under Remote.
  4. Click Push.
The Push sheet: the branch, the remote and the options.
The Push sheet: the branch, the remote and the options.

Push never forces. If the remote has commits you don't have, Git Review says Pull first and nothing is sent. If the remote refuses the push for another reason, what it said is shown in a box at the top of Git Review.

To push without running the repository's pre-push hook, check Skip hooks (pre-push) in the sheet.

Push sends a branch only to a remote branch with the same name. If your branch tracks a branch with another name, Git Review explains this and does not push; push it from a terminal if that is what you want.

Switch branches

  1. Click the branch button in the header.
  2. A list of your local branches opens under Switch Branch. The current branch is marked Current; other branches show how far they are ahead and behind.
  3. Click a branch, or highlight it with the arrow keys and press Return.
The branch list open in Git Review.
The branch list open in Git Review.

If you have uncommitted changes, Git Review asks first. Git refuses the switch if it would overwrite your changes; in that case nothing is changed or stashed. Commit, stash or discard the changes first. The file list under Git Review shows the new branch's files after the switch.

You cannot switch branches while a merge, rebase, cherry-pick or revert is in progress.

Create a branch

  1. Click the branch button in the header.
  2. Click New Branch… at the bottom of the list.
  3. Type a Name, for example feature/eval-report.
  4. Check Switch to it if you want to work on the new branch right away.
  5. Click Create Branch.

The new branch starts at your current commit. It tracks no remote branch until you push it.

Delete a branch

  1. Click the branch button in the header.
  2. Click the trash button at the end of the branch's row.
  3. Click Delete Branch to confirm.

Only the local branch is deleted, and only when all its commits are also on another branch; otherwise Git refuses and nothing is lost. The remote is not touched. You cannot delete the current branch; switch to another one first.

Stashes

A stash puts your uncommitted changes aside so you can work on something else, and brings them back later.

To stash your changes:

  1. Click the Stashes tab.
  2. Click Stash Changes….
  3. Type a Message (optional) and check Include untracked files to stash new files too.
  4. Click Stash. Your working files go back to the last commit.

Each stash in the list (newest first) has three buttons:

  • Apply (keep the stash) brings the changes back and keeps the stash.
  • Pop (apply, then drop when it applied cleanly) brings the changes back and removes the stash, but only if there were no conflicts.
  • Drop… removes the stash. Git Review asks first.
Dropping a stash deletes it from the stash list. Its changes are gone unless you applied them first.

If applying a stash causes conflicts, the stash is kept. Resolve the conflicts, then drop the stash.

When an action is refused

Git Review explains in plain words why it did not do something. Common reasons:

  • An operation is in progress. During a merge, rebase, cherry-pick or revert, every change from Git Review is refused. Finish it outside Vektor Commander first.
  • The remote asked for credentials. Git Review never asks for passwords. Fetch from a terminal once, or set up a credential helper for Git.
  • The repository's settings name a program to run. Git Review does not run programs named by a repository. Run the action from a terminal if you trust the repository.
  • The commit could not be signed. Signing is turned on in your Git settings and the key is not available. Check your signing key in a terminal.
  • Another action is still running. Wait until it finishes, or click Cancel in the header.

What Git Review does not do

Git Review covers everyday work. It does not force-push, merge, rebase, reset, cherry-pick, create tags, manage remotes, clone repositories or help resolve conflicts. Use a terminal for those. You can open one in the same folder with the pane terminal.

© 2026 Vektor Commander