Skip to content
Versora

Manual

Graph

Context menus

20 min read

On this page

Almost everything you can do with a commit, a branch, a tag or a stash is in its context menu: right-click it. This page is the index of all those menus, item by item, in the order they appear. Each item has a sentence and the link to the page that explains it in detail.

How the menus work

Where to find it

  • Right-click the item (commit, graph label, left panel row, section header).
  • From the keyboard: with the item focused (in the graph, the selected commit), Shift+F10 or the Menu key. Inside the menu, ↑/↓ and Home/End move between items, a letter jumps to the next item that starts with it, → (or Enter) opens a submenu and ← goes back from it, Enter chooses and Esc closes. See Accessibility.

How to read a menu

  • Gray items are disabled. Many say why after a dash, for example "Squash into the previous commit… — the previous commit isn't on the branch" or "Interactive rebase from this commit — there's a merge above it".
  • Red items destroy something (discard, delete, hard reset) and ask for confirmation.
  • Items with an arrow open a submenu.
  • Conditional items only appear in certain states: with a GitLab or GitHub server registered, with other worktrees, on the current branch, with a bisect in progress and so on. The tables below give each one's condition.
  • The names in the examples (main, feature/login, origin, a1b2c3d, v1.4.0) are replaced by the ones in your repository.
  • The Block columns of the tables number the groups separated by lines in the full menu. A block whose items are all conditional may not appear.

Caveats and messages

  • Edit message, drop, move commits, surgery and interactive rebase rewrite the current branch's history. The common warning is: "This rewrites history: this commit and the ones after it get new IDs. If they were already sent to the remote, you'll need to force push."
  • Almost all actions go into the undo history (Ctrl+Z); push, deletions on the remote and other operations on the server don't. See Undo and redo.

Commit menu

Right-click a commit row in the graph (one that isn't the WIP row or a stash). On a commit that is part of a selection of several commits, it opens the selection menu (next section).

BlockItemWhat it doesConditionSee
1Check out this commitChecks out the commit, in detached HEAD.Disabled if you're already in detached HEAD on this commit.Checkout
2Create worktree from this commit…Creates a second working folder from the commit, which opens in a tab.—Create and open worktrees
3Create branch here…Creates a branch on the commit, typing the name right in the row (ghost branch) or in the dialog.—The commit graph
3Reset main to this commit › Soft — keep all changes staged / Mixed — keep the files, clear the stage / Hard — discard all changes…Moves the current branch to the commit.In detached HEAD, the text says "Reset HEAD…".Reset
3Revert commitCreates a commit that undoes this one, with a conflict preview first.Disabled on a merge.Revert
3Edit commit message…Changes the commit message.Only simple commits on the current branch's line.Edit message, drop and move commits
3Create fixup for this commit…Creates a fixup! commit with what is staged.Only appears on commits on the current branch's line; disabled with nothing staged and in the cases listed below the table.Commit surgery
3Amend this commit with the staged changes…Adds the staged changes to the commit and rebuilds the ones above.Same.Commit surgery
3Squash into the previous commit…Combines the commit with its parent.Same; disabled without a previous commit on the branch.Commit surgery
3Split commit…Splits the commit into two or more.Same.Commit surgery
3Uncommit (bring the changes back to the stage)…Removes the commit from the history and leaves the changes staged.Same.Commit surgery
3Move changes to another commit…Takes files, hunks or lines of this commit to another one on the branch.Only appears on commits on the current branch's line; disabled with the reason (merge, first commit, outside the editable range, operation in progress).Moving between commits
4Drop commit… (red)Removes the commit from the branch's history, with confirmation.Only simple commits on the current branch's line.Edit message, drop and move commits
4Move commit downSwaps the commit's place with the previous one.Disabled if the previous one doesn't exist or is a merge.Edit message, drop and move commits
4Move commit upSwaps the commit's place with the next one.Only appears if there's a commit above it on the current branch; disabled if the one above is a merge.Edit message, drop and move commits
4Interactive rebase of the commit above this one… / Interactive rebase of the 3 commits above this one…Opens the interactive rebase with the commits above this one on the current branch.On a commit on the current branch's line. On HEAD itself: "Interactive rebase from this commit — no main commits above it"; with a merge on the way: "… — there's a merge above it".Interactive rebase
4Interactive rebase of main onto this commit…Takes the current branch on top of this commit, through the interactive rebase screen.Instead of the previous item, on a commit that isn't in the current branch's history.Interactive rebase
5One submenu per branch that points to this commit (feature/login ›, origin/feature/login ›)That branch's actions: pull/push or checkout, merge, squash merge, rebase, rename, delete, copy the name, hide, solo, pin, favorite, fork point, archive.Only on commits with a branch label."Local branch menu" and "Remote branch menu" sections, below
6Cherry-pick this commitApplies the commit on the current branch, with a conflict preview first.Disabled if the commit is already in HEAD's history.Cherry-pick
6Cherry-pick into another worktree ›Applies the commit on another worktree's branch.With other worktrees; doesn't appear on merges.Moving changes and commits between worktrees
6Move to another worktree ›Takes the commit to another worktree and removes it from here.Same; only enabled on the commit at the top of the current branch.Moving changes and commits between worktrees
6Compare commit with working directoryShows in the right panel what changed from the commit to the current files.—Comparing revisions
6Compare with…Picks the other side and opens the comparison (commits and files).—Comparing revisions
6Browse the files of this commitOpens the file tree of that version.—Tree and export
6Export this commit as ZIP…Generates a ZIP or tar.gz of the version (git archive).—Tree and export
6Team commands › / My commands ›Custom commands with where: [commit].Only if any is defined.Custom commands
7Bisect: mark as bad… / Bisect: mark as good…Starts a bisect with this commit as bad or good.Without a bisect in progress.Bisect
7Bisect: mark as good / Bisect: mark as bad / Bisect: skip this commitMarks the commit in the bisect in progress.With a bisect in progress.Bisect
7Bisect: end…Ends the bisect.When the bisect has already found the commit (or can't continue).Bisect
8Create tag here…Creates a lightweight tag on the commit.—Tags
8Create annotated tag here…Creates an annotated tag, with a message.—Tags
9Create patch from commit…Saves the commit as a .patch file. On a merge commit, the item is called Create patch of the merge (against the first parent)… and the patch carries what the merge brought into the first parent (applied with git am, it becomes a single commit).—Creating and applying patches
9Copy commit SHACopies the full SHA ("SHA copied").——
9Copy messageCopies the commit title ("Message copied").——
9Copy link to this commit on remote: originCopies the commit's address on the remote's GitLab or GitHub site ("Link copied").Only with a remote whose address the app recognizes.—
9Copy Versora link to this commitCopies a versora:// link that opens this commit in Versora.—versora:// links

The bisect items are disabled with the reason "wait for the current operation" or "a rebase is in progress" when another operation is running. The surgery items show the reason when they don't apply: "a rebase is in progress", "detached HEAD: check out a branch", "nothing staged", "there are conflicted files", "merge commit", "the repository's first commit", "already in main", "no previous commit on the branch" or "the previous commit isn't on the branch".

Right-click a commit that is part of a selection of two or more commits (Ctrl+click or Shift+click). Disabled items say the reason; the list of reasons is in Multiple selection.

BlockItemWhat it doesConditionSee
1Squash 3 commits…Combines the commits into one.Adjacent commits on the current branch's line, without a merge in the range.Squash
1Drop 3 commits… (red)Removes the commits from the current branch.Commits on the current branch's line, without a merge in the range.Edit message, drop and move commits
2Cherry-pick 3 commitsApplies the commits on the current branch, from oldest to newest.Without merges and without commits that are already on the current branch.Cherry-pick
2Revert 3 commitsUndoes the commits, from newest to oldest.Without merges.Revert
2Cherry-pick into another worktree ›Applies the commits on another worktree.With other worktrees; selection without a merge or a stash.Moving changes and commits between worktrees
2Move to another worktree ›Takes the commits to another worktree.Same; only enabled with the commits at the top of the current branch, in sequence.Moving changes and commits between worktrees
3Interactive rebase of 3 commits…Opens the interactive rebase with the selected ones highlighted.Commits on the current branch's line, without a merge in the range.Interactive rebase
4Compare a1b2c3d with d4e5f6aCompares the oldest with the newest.—Comparing revisions
4Team commands › / My commands ›Custom commands with where: [selection].Only if there are any.Custom commands
4Copy the 3 SHAsCopies the SHAs, one per line, from newest to oldest.—Multiple selection
4Clear selectionGoes back to a single commit.—Multiple selection

Local branch menu

Right-click a local branch that is not the current one: in the LOCAL section of the left panel, on the graph label, in the WORKFLOW, GITFLOW and STACKS sections and in the branches review. The "history" items (blocks 5 and 6) apply to the branch's tip commit.

BlockItemWhat it doesConditionSee
1Pull (fast-forward)Fetches from the remote and moves the branch forward to the upstream, without a checkout.Disabled without an upstream. Only moves forward by fast-forward.Pull
1PushPushes the branch without a checkout; without an upstream, publishes it.—Push
1Force push… (red)Push with --force-with-lease, with confirmation.—Force push
1Set upstream…Picks the remote branch this one tracks.—Upstream
2Check out feature/loginChecks out the branch.—Checkout
2Merge feature/login into mainMerges the branch into the current one, with a conflict prediction first.Only with a branch checked out (not in detached HEAD).Merge and rebase
2Squash merge feature/login into main…Brings the changes in as a single commit, with the message you edit.Same.Squash
2Rebase main onto feature/loginReapplies the current branch on top of this one.Same.Merge and rebase
2Interactive rebase of main onto feature/login…The same, through the interactive rebase screen.Same.Interactive rebase
3Create merge request from feature/login…Opens the MR form (or pull request, on GitHub).With the remote's GitLab or GitHub server registered; the branch is already on the remote; it isn't the project's default branch.Merge requests
3Push feature/login and create merge requestPushes the branch and opens the MR form.Same; the branch wasn't pushed or is ahead of the remote.Merge requests
3Open merge request !12 in browserOpens the MR that already exists for the branch.Instead of the two previous items, when there's already an open MR.Merge requests
4Branch stack › (or Branch stack (2/3) ›)New stacked branch, stack onto another, restack, push, sync and the other stack actions.Always (the contents change if the branch is in a stack).Stacks
4Commit overlap of feature/login…Shows which of the branch's commits touch the same lines.—Commit overlap
4Browse the files of feature/loginOpens the file tree of the branch tip.—Tree and export
4Export feature/login as ZIP…Generates a ZIP or tar.gz of the branch tip.—Tree and export
4Team commands › / My commands ›Custom commands with where: [branch].Only if there are any.Custom commands
4Checkout › feature/login / origin/feature/login / this commitChecks out the branch, the remote branch with the same name or the tip commit (detached HEAD).The remote one only appears if it exists.Checkout
4Create worktree from › feature/login / this commitCreates a worktree on the branch or on the tip commit.—Create and open worktrees
5 and 6The history items of the commit menu (from Create branch here… to the interactive rebase)Same items and conditions as blocks 3 and 4 of the "Commit menu", for the tip commit.—"Commit menu" section, above
7Gitflow: finish feature…Finishes the Gitflow feature, release or hotfix.Branch with a Gitflow prefix and no workflow preset chosen.Gitflow
7Finish Feature… / Release a version of develop…Finishes the branch through the repository's workflow, or releases a version from a permanent branch.With a workflow preset chosen and the branch inside it.Repository workflow
7Promote staging to production…Takes the environment to the next one, in GitLab flow.GitLab flow preset and an environment branch that isn't the last one.Repository workflow
7Workflow health: 2 warnings…Shows the workflow warnings for this branch.With workflow health warnings for the branch.Workflow health
7Apply patch…Applies a .patch or .diff file.—Creating and applying patches
7Apply patch from clipboard…Applies the copied patch, with a preview.—Creating and applying patches
7Rename feature/login…Renames the local branch.—Create, rename and delete
7Delete feature/login… (red)Deletes the local branch, with confirmation.—Create, rename and delete
8Open this branch's worktree (loja-web-login)Opens the tab of the worktree where the branch is checked out.Only if the branch is checked out in another worktree.Create and open worktrees
8Remove this branch's worktree… (red)Removes that worktree.Same.Remove, lock and unlock
8Remove worktree and delete branch feature/login… (red)Removes the worktree and the branch.Same.Remove, lock and unlock
8Delete origin/feature/login… (red)Deletes the branch on the remote, for everyone.A pair of items for each remote with a branch of the same name.Create, rename and delete
8Delete feature/login and origin/feature/login… (red)Deletes the local and the remote one at once.Same.Create, rename and delete
9Copy branch nameCopies the name.——
9Copy commit SHACopies the tip's SHA.——
9Copy link to branch: origin/feature/loginCopies the branch's address on the remote's site.With an upstream (or a remote branch of the same name) on a remote whose address the app recognizes.—
9Copy link to this commit on remote: originCopies the address of the tip commit on the remote's site.With a recognized remote.—
9Copy Versora link to branch: feature/loginCopies a versora:// link to the branch (with the upstream's name, if there is one).—versora:// links
9Create patch from commit…Saves the tip commit as a .patch. If the tip is a merge commit, the item is Create patch of the merge (against the first parent)….—Creating and applying patches
10Hide in graph / Show in graphRemoves the branch from the graph or brings it back.—Search and filters
10Solo — show only this branch / Stop soloPuts the branch in solo or takes it out.—Search and filters
10Pin to Left / Unpin from LeftReserves the left lane for the branch.—Navigating the graph
10Add to favorites / Remove from favoritesMarks the branch for the Favorites preset.—Search and filters
10Show fork pointGoes to the commit the branch started from and marks it.—Fork point
10Archive branch / Unarchive branchHides the branch from the panel and the graph without deleting it, or brings it back.—Archiving branches
11Compare commit with working directoryCompares the branch tip with the current files.—Comparing revisions
11Compare feature/login with…Picks the other side and opens the comparison.—Comparing revisions
11What enters main when merging feature/loginOpens directly the comparison of what the merge would bring to the current branch.Only with a different branch checked out.Comparing revisions
12Create tag here… / Create annotated tag here…Creates a tag on the branch tip.—Tags

Current branch menu

The menu of the checked-out branch is the same as the local branch menu, with these differences:

DifferenceDetailSee
The first item is the pull in the mode set in the preferencesPull (fast-forward if possible), Pull (fast-forward only) or Pull (rebase), according to Preferences › General.Pull
Push and Force push…Push the current branch, with the checks before the push.Push
There's no Check out…, merge, squash merge or rebase onto itself——
Apply pending fixups / Apply 2 pending fixupsCombines the fixup! commits with their commits. Disabled with "— no pending fixup!".Commit surgery
New version…Calculates the next version, writes the changelog and creates the tag. Only on the main branch (main, master, trunk or the Gitflow main branch) and on release/* and hotfix/*.New version and changelog
In Branch stack ›On a stack branch, Check out the branch below and Check out the branch above also appear.Stacks
DisabledDelete main…, Delete main and origin/main…, Checkout › main, Create worktree from › main and Archive branch (not for the current branch).—
MissingWhat enters main when merging main.—

Remote branch menu

Right-click a remote branch: in the REMOTE section of the left panel or on the graph label of a branch that only exists on the remote.

BlockItemWhat it doesConditionSee
1Check out feature/loginChecks out the remote branch: creates the local branch tracking the remote one or uses the one that already exists.—Checkout
1Merge origin/feature/login into mainMerge into the current branch, with a conflict prediction first.Only with a branch checked out.Merge and rebase
1Squash merge origin/feature/login into main…Squash merge into the current branch.Same.Squash
1Rebase main onto origin/feature/loginReapplies the current branch on top of the remote one.Same.Merge and rebase
1Interactive rebase of main onto origin/feature/login…The same, through the interactive rebase screen.Same.Interactive rebase
2Create merge request from origin/feature/login… / Open merge request !12 in browserCreates the MR from the branch that only exists on the remote, or opens the existing one.With the remote's server registered; only on the integration's remote; not on the project's default branch.Merge requests
3Commit overlap of origin/feature/login…The branch's commits that touch the same lines.—Commit overlap
3Browse the files of origin/feature/loginFile tree of the tip.—Tree and export
3Export origin/feature/login as ZIP…ZIP or tar.gz of the tip.—Tree and export
3Create worktree from › origin/feature/login / this commitWorktree from the remote branch or from the tip commit.—Create and open worktrees
4 and 5The history items of the commit menuFor the remote branch's tip commit.—"Commit menu" section, above
6Delete origin/feature/login… (red)Deletes the branch on the remote, for everyone.—Create, rename and delete
6Clean up merged branches on origin…Opens the cleanup of that remote's already merged branches.—Branch cleanup
7Copy branch name, Copy commit SHA, Copy link to branch: origin/feature/login, Copy link to this commit on remote: origin, Copy Versora link to branch: feature/login, Create patch from commit…As on the local branch.The site links only with a recognized remote.versora:// links
8Hide in graph, Solo — show only this branch, Pin to Left, Add to favorites, Show fork point, Archive branchAs on the local branch.—Search and filters
9Compare commit with working directory, Compare origin/feature/login with…, What enters main when merging origin/feature/loginAs on the local branch.The last one only with a branch checked out.Comparing revisions
10Create tag here… / Create annotated tag here…Tag on the remote branch's tip.—Tags

Tag menu

Right-click a tag: in the TAGS section of the left panel or on the graph label.

BlockItemWhat it doesConditionSee
1Check out the commit at v1.4.0Checks out the tag's commit, in detached HEAD.—Tags
1Create branch here…Creates a branch from the tag.—Create, rename and delete
2Push v1.4.0 to › origin (… all remotes)Pushes the tag to one remote or to all of them.Disabled without remotes; all remotes only with more than one.Tags
2Delete v1.4.0 locally (red)Deletes the local tag.—Tags
2Delete v1.4.0 from remote › origin (… all remotes) (red)Deletes the tag on the remote, for everyone, with confirmation.Disabled without remotes.Tags
2Create release on GitLab… (or on GitHub…)Creates the Release for an already pushed tag, with the notes from the changelog or the tag message.With the remote's server registered.New version and changelog
3Browse the files of v1.4.0File tree of the version.—Tree and export
3Export v1.4.0 as ZIP…ZIP or tar.gz of the version.—Tree and export
4Compare v1.4.0 with…Comparison with another revision.—Comparing revisions
4What enters main when merging v1.4.0What the tag's merge would bring to the current branch.Only with a branch checked out.Comparing revisions
5Copy tag nameCopies the name.——
5Copy Versora link to tag: v1.4.0Copies a versora:// link to the tag.—versora:// links

Stash menu

Right-click a stash: in the STASHES section of the left panel, on the stash label or on the stash's row in the graph.

BlockItemWhat it doesConditionSee
1Apply stashApplies the saved changes and keeps the stash. It goes into Ctrl+Z, which also deletes the files the stash created.—Stash
1Apply and remove (pop)Applies the stash and takes it off the list. It doesn't go into Ctrl+Z.—Stash
1Apply part…Picks files, hunks or lines of the stash to apply.—Stash
1Edit stash message…Changes the message; the stash becomes the most recent in the list.—Stash
1Export as patch › Copy the patch / Save to file…The whole stash as a patch.—Stash
2Delete stash… (red)Deletes the stash, with confirmation.—Stash

WIP row menu

Right-click the // WIP row of the graph (the uncommitted changes of this worktree).

BlockItemWhat it doesConditionSee
1Stage all changesStages everything (except the files on the "don't commit" list).—Staging
1Stash changes…Saves the changes in a stash, with a title and a description.—Stash
1Snapshot (save without removing anything)…Saves a copy in a stash and leaves the files as they are.—Stash
1Stash only the staged changes…Stash of the staged changes only.Disabled with nothing staged.Stash
1Apply patch from clipboard…Applies the copied patch, with a preview.—Creating and applying patches
1Move the changes to worktree ›Takes the changes to another worktree.Only with other worktrees.Moving changes and commits between worktrees
2Discard all changes… (red)Discards everything, staged or unstaged, and deletes the untracked files, with confirmation.—Discarding changes

Right-click a "// WIP" row of another worktree of the repository (the one that shows the worktree's name in the BRANCH / TAG column).

BlockItemWhat it doesConditionSee
1Open worktreeOpens the worktree in a tab (the same as double-clicking the row).—Each worktree's WIP in the graph
1Open the terminal in this worktreeOpens the integrated terminal in the worktree's folder.—Integrated terminal
2Bring the changes over here…Brings that worktree's changes to this one.—Moving changes and commits between worktrees
2Send the changes from here to there…Takes this worktree's changes to that one.Disabled without changes here.Moving changes and commits between worktrees
2Prepare (.worktreeinclude and setup)…Copies the chosen ignored files and runs the setup.—Preparing the new worktree
3Lock worktree… / Unlock worktreeLocks or unlocks the worktree.—Remove, lock and unlock
4Remove this worktree… (red)Removes the worktree's folder, checking first what would be lost.—Remove, lock and unlock
4Remove worktree and delete branch feature/login… (red)Removes the worktree and its branch.Only if the worktree is on a branch.Remove, lock and unlock

The items that depend on the folder are disabled if it disappeared from disk.

Graph label menus

Right-clicking a label in the BRANCH / TAG column opens the menu of whatever the label represents and selects its commit:

LabelMenu
Local branch (including the one that combines local and remote, with both icons)Local branch menu (or current branch menu)
Branch that only exists on the remoteRemote branch menu
TagTag menu
StashStash menu
HEAD (detached HEAD)Commit menu

With the mouse over the column, all of the commit's labels appear, one per line: right-click the one you want. While the menu is open, the list stays visible. See The commit graph.

Left panel header menus

Right-click the title of a left panel section or a remote's folder.

LOCAL

BlockItemWhat it doesSee
1Create branch…Creates a branch from HEAD.Create, rename and delete
2Clean up branches…Opens the cleanup of the already merged branches.Branch cleanup
2Fetch --prune and clean up branches…Updates the remotes (removing the branches that disappeared) and opens the cleanup.Branch cleanup
2Review branches…Opens the review of all branches against a base.Branches review
2Review stale branches…The same screen, filtered on the stale branches.Branches review
3Hide all local branches / Show all local branchesHides or shows the whole section in the graph (with the section partially hidden, both).Search and filters

REMOTE

ItemWhat it doesSee
Hide all remotes / Show all remotesHides or shows all remote branches in the graph.Search and filters

A remote's folder (for example origin, inside REMOTE)

BlockItemWhat it doesConditionSee
1Fetch originFetches only from that remote.—Pull
2Edit origin…Changes the remote's name or URL.—Remotes
2Copy remote URLCopies the URL ("URL copied").—Remotes
2Open origin in the browserOpens the project on the remote's site.Only with a URL the app recognizes.Remotes
3Clean up merged branches on origin…Cleanup of that remote's merged branches.—Branch cleanup
3Hide all branches of origin / Show all branches of originHides or shows that remote's branches in the graph.—Search and filters
4Add remote…Registers another remote.—Remotes
4Remove origin… (red)Removes the remote and its remote-tracking branches (the repository on the server isn't affected).—Remotes

TAGS

ItemWhat it doesSee
Hide all tags / Show all tagsHides or shows the tags in the graph.Search and filters

STASHES

ItemWhat it doesSee
Hide all stashes / Show all stashesHides or shows the stashes in the graph.Search and filters

The headers of the other sections have their own menus, explained on their pages: STACKS (Stacks), WORKFLOW (Repository workflow) and ARCHIVED (Archiving branches). A row in the WORKTREES section opens the worktree menu (Create and open worktrees).

Graph header menu

Right-clicking the header of the graph columns (BRANCH / TAG, GRAPH, MESSAGE, AUTHOR, DATE, SHA) opens the Graph columns window: show, hide and reorder columns, the commit description and the overview bar. See The commit graph.

When you drag a branch and drop it onto another branch (or onto a remote), a menu opens with the possible actions for that combination: fast-forward, merge, rebase or push. The items and the conditions are in Dragging branches and commits.

See also