Working with Commits
Cherry-pick, revert, reset, uncommit, checkout, patches and comparisons from the graph
Right-clicking a commit in the graph opens a context menu with every history operation GitBor supports. Each one maps to a plain git command — nothing here is GitBor-specific magic.
Branches and tags from a commit
| Action | Command |
|---|---|
New Branch from 'sha'… (Ctrl+Shift+B) | git branch <name> <sha> |
New Tag at 'sha'… (Ctrl+Shift+T) | Lightweight tag at the commit. |
| New Annotated Tag… | Prompts for a name and a tag message (git tag -a). |
Moving and replaying commits
| Action | What it does |
|---|---|
| Merge 'sha' into '<branch>' | Merges the commit into your current branch. |
| Rebase '<branch>' to Here… | Replays your branch onto the commit. |
| Interactively Rebase '<branch>' to Here… | Opens the interactive rebase editor. |
| Cherry-pick this commit | Applies the commit's changes on top of HEAD. For a merge commit, GitBor uses mainline ^1 automatically. |
| Revert this commit | Creates a new commit that undoes this one (mainline ^1 for merges). |
Reset and uncommit
- Uncommit to staging — shown only on the current
HEADcommit (and only when it isn't already pushed). It's a soft reset to the parent: the commit is undone but its changes stay staged, ready to recommit. The safe way to "edit the last commit". - Reset '<branch>' to Here has three modes:
| Mode | Effect |
|---|---|
| Soft | Move the branch pointer; keep changes staged. |
| Mixed | Move the pointer; keep changes in the working directory (unstaged). |
| Hard | Move the pointer and discard all uncommitted changes. Asks for confirmation — this cannot be undone (except via the reflog). |
Checkout, patch and compare
- Checkout Commit… — detaches HEAD at that commit.
- Save as Patch… — writes the commit as a
.patchfile you can email or apply elsewhere. - Compare to Local Changes — diffs the commit against your working tree.
- Compare with Previous — diffs the commit against its parent (the repo's first commit is compared against the empty tree, so it renders correctly).
- Compare From Here / Compare with 'sha' — pick any two commits to diff. See Commit Graph → Compare.
Copying
- Copy SHA (
Ctrl+C) — the full hash. - Copy Commit Info (
Ctrl+Shift+C) — short hash, subject, author and date in one block.
Understanding a commit with AI
The Commit Details panel has an Explain commit button. It produces a short, high-level summary of what changed and why — not a line-by-line walk-through. Useful when reviewing a pull request or scanning an old release. See AI Helpers.
Safety
Reset (hard), rebase and other history-rewriting operations are protected: GitBor records the current HEAD before it starts, so you can return to it from the Reflog. Uncommitted changes are auto-stashed when an operation would otherwise lose them. See Data Protection.