Graph
Navigating the graph
9 min read
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.
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.
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.
| Shortcut | What it does |
|---|---|
| ↓ / ↑ | Next (older) / previous (newer) commit. |
| J / K | The same as ↓ and ↑: "Next commit (like ↓)" and "Previous commit (like ↑)". |
| Home / End | First and last loaded commit. |
| PageUp / PageDown | One screen of commits up or down. |
| Shift+J / Shift+K | Follow the same branch (see the next section). |
| Shift+↓ / Shift+↑ | Extend the commit selection. See Multiple selection. |
| Esc | Clear the selection of several commits. |
| Ctrl+F | Open the search. |
| Shift+F10 or the Menu key | Open the context menu of the selected commit, like right-clicking. |
- 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.
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.
With the focus on the graph and a commit selected.
- Select a commit of the branch you want to walk through, for example the tip of
feature/login. - Shift+J: goes to the first parent ("Next commit in the same branch (first parent)"). Repeat to go down the branch's history.
- 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.
- 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.
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.
- 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".
- Select a commit, for example
a1b2c3donmain. - Click the
release/1.4branch in the left panel: the graph jumps to its tip. - Press Alt+← (or the mouse's side "back" button): the graph goes back to
a1b2c3d. - Alt+→ takes you to the tip of
release/1.4again.
| What you do | Does 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.
- 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.
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.
| Way | How |
|---|---|
| Left panel | Click a branch, tag or stash: the graph goes to the commit it points to. |
| Commit parents | In the commit's right panel, each parent's SHA is a link ("Go to the parent commit"). |
| Search | Ctrl+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 bar | Click a marker (HEAD, branch, tag, stash, search result). |
| Pinned branch | The toolbar's "Jump to pinned branch" button (see "Pin a branch to the left" below). |
| versora:// links | A commit link opened in Versora takes you to it. See versora:// links. |
- 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.
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.
- 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.
| Double-click on | Result |
|---|---|
| Local branch (other than the current one) | Checks it out. |
| Current local branch | Nothing. |
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. |
# 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.
Ctrl+Z goes back to the previous branch (or commit). See Undo and redo.
- In detached HEAD, new commits aren't on any branch. Create a branch first (commit menu › Create branch here… or the ghost branch).
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.
- 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".
- Right-click the
mainbranch › Pin to Left. - The graph is redrawn with
mainalone on the left lane. In the left panel, themainrow gets the pin ("Pinned to the left lane of the graph"). - To go back to
mainfrom any point in the history, click the pin on the toolbar ("Jump to pinned branch (main)"). - To undo it, branch menu › Unpin from Left.
| Behavior | Detail |
|---|---|
| One per repository | Pinning another branch replaces the pinned one. |
| Saved per repository | It stays pinned when you reopen the app. |
| Deleted branch | The mark stays saved and comes back if the branch is recreated; meanwhile, the toolbar button disappears. |
| Tip outside what's loaded | The graph is drawn as usual until the tip shows up. |
Nothing: pinning only changes how the lanes are drawn. No ref is changed.
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).
- Without a pinned branch, the palette commands appear unavailable with "No branch pinned to the left (branch menu › Pin to Left)".
- Context menus
- Search and filters: presets and favorites are in the same menu.
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.
- Automatic: select the tip of a branch in the graph (applies to branches other than
main,masterordevelop). - Branch menu › Show fork point.
- Palette: "Show fork point of the current branch".
- "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).
- Fork point: which branch Versora considers it started from, the variations of the tooltip and how the branches review uses it.
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.
| Shortcut | What it does |
|---|---|
| Tab | Enters the tree (it's a single Tab stop). |
| ↑ / ↓, Home / End, PageUp / PageDown | Move between items. |
| → / ← | Expand and collapse a section or folder; ← on an item goes up to its folder. |
| Enter or Space | The same as clicking: selects the branch's commit in the graph. |
| Shift+F10 or the Menu key | Opens the item's context menu (the same as right-clicking). |
| Ctrl+Alt+F | Moves 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.