Skip to content
Versora

Manual

Graph

Navigating the graph

9 min read

On this page

This page brings together the ways to move through the history: from the keyboard, following a branch, going back and forward between the commits you've already visited, jumping straight to a commit and keeping an important branch always on the first lane. To find commits by text, author or date, see Search and filters.

Move through commits with the keyboard

With the focus on the graph, the keyboard moves the selection from commit to commit. The right panel follows along: each selected commit shows its details.

Where to find it

Click any row of the graph (or reach it with Tab) so the focus is on the graph. The shortcuts don't work with the cursor in a text field.

Shortcuts

ShortcutWhat it does
↓ / ↑Next (older) / previous (newer) commit.
J / KThe same as ↓ and ↑: "Next commit (like ↓)" and "Previous commit (like ↑)".
Home / EndFirst and last loaded commit.
PageUp / PageDownOne screen of commits up or down.
Shift+J / Shift+KFollow the same branch (see the next section).
Shift+↓ / Shift+↑Extend the commit selection. See Multiple selection.
EscClear the selection of several commits.
Ctrl+FOpen the search.
Shift+F10 or the Menu keyOpen the context menu of the selected commit, like right-clicking.

Caveats and messages

  • The selection stays within the loaded commits. To go further, use Load more at the end of the list (see The commit graph).
  • A screen reader announces the selected commit: the graph is the "Commit history" list. See Accessibility.

J, K, Shift+J, Shift+K and Ctrl+F can be changed in Preferences › Keyboard shortcuts. The arrows, Home/End, Shift+arrows and Esc are fixed. See Keyboard shortcuts.

See also

Follow the same branch (Shift+J and Shift+K)

The arrows move through the list in date order, which mixes commits from several branches. With Shift+J and Shift+K you move only along one branch's line, from parent to parent, skipping the commits of other branches in between.

Where to find it

With the focus on the graph and a commit selected.

Step by step

  1. Select a commit of the branch you want to walk through, for example the tip of feature/login.
  2. Shift+J: goes to the first parent ("Next commit in the same branch (first parent)"). Repeat to go down the branch's history.
  3. Shift+K: goes back to the child ("Previous commit in the same branch (child)"). If more than one commit has this one as its first parent (branches that started from the same point), the one on the same lane wins; if none is on the same lane, the closest one.

Caveats and messages

  • On a merge, Shift+J follows the first parent (the branch that received the merge). To go to the other parent, use the parent link in the commit panel (see "Go to a commit" below).
  • If the parent hasn't been loaded yet, the app loads more commits and selects it.
  • On the repository's first commit (without a parent), Shift+J does nothing.
  • Shift+↓ and Shift+↑ don't follow the branch: they extend the multiple selection.

The keys can be changed in Keyboard shortcuts.

Go back and forward between selections

In each tab, Versora keeps the path of the commits you selected. Just like in a browser, you go back to the commit you were on before a jump (for example, after clicking a branch in the panel or going to a search result) and forward again.

Where to find it

  • Shortcut: Alt+← (back) and Alt+→ (forward).
  • Mouse: the side "back" and "forward" buttons.
  • Toolbar: the arrows at the start of the bar, "Back (Alt+←)" and "Forward (Alt+→)". They're disabled when there's nowhere to go.
  • Palette (Ctrl+P): "Graph: go back to the previous selection" and "Graph: go forward to the next selection".

Step by step

  1. Select a commit, for example a1b2c3d on main.
  2. Click the release/1.4 branch in the left panel: the graph jumps to its tip.
  3. Press Alt+← (or the mouse's side "back" button): the graph goes back to a1b2c3d.
  4. Alt+→ takes you to the tip of release/1.4 again.

How the history is built

What you doDoes it go into the history?
Click a commit, a branch in the panel, a search result, a parent link, "Jump to pinned branch"Yes, one entry per jump.
A sequence of keyboard steps (arrows, PageUp/PageDown, J/K, Shift+J/K)It becomes a single entry, with the final position. That way, Back takes you to where you started, not to the neighboring commit.
  • The history keeps up to 100 entries per tab and lasts while the tab is open.
  • A commit that no longer exists (after a rebase, for example) or that became hidden by the filter is skipped: the app moves on to the next entry in the same direction.
  • If the entry's commit isn't loaded, the app loads what's missing.

Caveats and messages

  • Back and Forward only work with the graph on screen and with no dialog or menu open.
  • In a text field and in the integrated terminal, Alt+← and Alt+→ still belong to the field (previous and next word).
  • In the palette, with no history in that direction, the command appears unavailable with "Nothing in the navigation history in that direction".

The keys can be changed in Keyboard shortcuts. The mouse side buttons always work.

See also

Go to a commit

There are several ways to take the graph straight to a commit, without scrolling the list. All of them select the commit, center the row on the screen and go into the Back/Forward history.

Where to find it

WayHow
Left panelClick a branch, tag or stash: the graph goes to the commit it points to.
Commit parentsIn the commit's right panel, each parent's SHA is a link ("Go to the parent commit").
SearchCtrl+F, SHA mode ("Goes to the commit with this hash (or where the branch/tag points).") or any other mode, with Enter to go from result to result. See Search and filters.
Overview barClick a marker (HEAD, branch, tag, stash, search result).
Pinned branchThe toolbar's "Jump to pinned branch" button (see "Pin a branch to the left" below).
versora:// linksA commit link opened in Versora takes you to it. See versora:// links.

Caveats and messages

  • If the commit is beyond the loaded ones, the app loads more commits until it reaches it.
  • "Commit a1b2c3d isn't in the graph (it may be on a branch hidden by the filter).": the commit only exists on a branch that the filter removes from the graph. Show the branch (the panel's eye or show all in the footer) and try again.
  • "Commit a1b2c3d is beyond the maximum number of commits the graph loads.": it's past the graph's commit 50,000.

See also

Checkout with a double-click

Double-clicking a branch or a tag, in the graph or in the left panel, checks it out. It's the shortest shortcut for switching branches.

Where to find it

  • On a branch or tag label, in the graph's BRANCH / TAG column.
  • On a row of the LOCAL, REMOTE or TAGS sections of the left panel.

What happens in each case

Double-click onResult
Local branch (other than the current one)Checks it out.
Current local branchNothing.
Remote branch (origin/feature/login)Checks out the remote branch: creates the local branch feature/login tracking the remote one or, if it already exists, checks it out and moves it forward. Details in Checkout.
Tag (v1.4.0)Checks out the tag's commit, in detached HEAD.
Worktree (WORKTREES section)Opens the worktree in a tab. See Create and open worktrees.

What Versora does in git

bash
# Local branch
git checkout feature/login --
# Tag (detached HEAD)
git checkout <tag-sha> --

Checkouts go through the autostash set in the preferences: with local changes that would block the switch, the app can save them in a stash and reapply them afterwards. See Autostash.

How to undo

Ctrl+Z goes back to the previous branch (or commit). See Undo and redo.

Caveats and messages

  • In detached HEAD, new commits aren't on any branch. Create a branch first (commit menu › Create branch here… or the ghost branch).

See also

Pin a branch to the left

Pin to Left reserves the graph's first lane for a branch: its line (the chain of first parents from the tip) sits alone on the left lane, in a straight line, and the other branches start on the next lane. In a repository with many branches, main (or the branch you're working on) stops moving around and becomes easy to follow.

Where to find it

  • Branch menu (local or remote, in the left panel or on the graph label) › Pin to Left; with the branch already pinned, the item becomes Unpin from Left.
  • Toolbar: with a branch pinned, the pin button "Jump to pinned branch (main)" appears next to Back and Forward.
  • The left panel's Presets button: at the end of the menu, "Jump to pinned branch (main)" and "Unpin main from left".
  • Palette (Ctrl+P): "Graph: jump to pinned branch" and "Graph: unpin the pinned branch".

Step by step

  1. Right-click the main branch › Pin to Left.
  2. The graph is redrawn with main alone on the left lane. In the left panel, the main row gets the pin ("Pinned to the left lane of the graph").
  3. To go back to main from any point in the history, click the pin on the toolbar ("Jump to pinned branch (main)").
  4. To undo it, branch menu › Unpin from Left.
BehaviorDetail
One per repositoryPinning another branch replaces the pinned one.
Saved per repositoryIt stays pinned when you reopen the app.
Deleted branchThe mark stays saved and comes back if the branch is recreated; meanwhile, the toolbar button disappears.
Tip outside what's loadedThe graph is drawn as usual until the tip shows up.

What Versora does in git

Nothing: pinning only changes how the lanes are drawn. No ref is changed.

How to undo

Branch menu › Unpin from Left, the "Unpin main from left" item in the Presets menu or the palette's "Graph: unpin the pinned branch". It isn't part of Ctrl+Z (it's not a git operation).

Caveats and messages

  • Without a pinned branch, the palette commands appear unavailable with "No branch pinned to the left (branch menu › Pin to Left)".

See also

Fork point marker

When you select the tip of a branch, the commit it started from gets the "feature/login started here" marker in the graph. From the branch menu › Show fork point, the graph goes to that commit and the marker stays until you close it ("Remove the marker"). It's a quick way to see how far the branch has moved away from its base and whether it started from the right place.

Where to find it

  • Automatic: select the tip of a branch in the graph (applies to branches other than main, master or develop).
  • Branch menu › Show fork point.
  • Palette: "Show fork point of the current branch".

Caveats and messages

  • "main is a main branch: it has no fork point.": the requested branch is the main one itself.

Preferences › Branch hygiene › Mark the fork point of the selected branch (on by default).

See also

  • Fork point: which branch Versora considers it started from, the variations of the tooltip and how the branches review uses it.

Keyboard in the left panel

The left panel is a tree: with the focus on it, the arrows move between sections and branches, and each selected item takes the graph to its commit.

Shortcuts

ShortcutWhat it does
TabEnters the tree (it's a single Tab stop).
↑ / ↓, Home / End, PageUp / PageDownMove between items.
→ / ←Expand and collapse a section or folder; ← on an item goes up to its folder.
Enter or SpaceThe same as clicking: selects the branch's commit in the graph.
Shift+F10 or the Menu keyOpens the item's context menu (the same as right-clicking).
Ctrl+Alt+FMoves the cursor to the Filter field, from anywhere in the window.

The buttons inside each row (such as the eye) are left out of the Tab order; the same actions are in the context menu.

See also