GitKraken's one-key smart operations with lazygit's keyboard-driven TUI.
Huge repos make ordinary git slow and stateful operations error-prone — gg turns
multi-step flows (pull-with-divergence, switch-with-local-changes, worktree create-and-cd)
into single keystrokes that ask you a focused question only when there's a real decision to
make. Cross-platform, shells out to the system git.
View on GitHub Watch on YouTube Install
Every question below links to a written recipe — the exact keys, step by step — under the demo video that shows it. Follow the steps without watching, or watch when you want to see it happen. Every question and every demo title is a link you can share.
Panels for branches, worktrees, files, staged changes and commits — with a contextual footer that lists only the keys that apply to the focused panel right now.
gg inside any git repository.tab moves focus between panels; ctrl+← / ctrl+→ switches the tabs inside a box (Branches / Remotes / Worktrees, Files / Tags, Staged / Reflog).→ or tab) and move with ↓ / ↑.enter on a commit opens its changed files; enter on a file shows the diff.esc backs out of any view, one level at a time.Plain git: git log, git show <commit>
? for the full key reference; esc closes it.. opens the action menu for whatever is under the cursor — type to filter it.ctrl+p is the command palette for everything that has no key of its own. q quits gg.Stage files with space, commit with c — title and multi-line description in one popup, ctrl+s commits.
tab to focus the Files panel.space to stage it. Repeat for every file that belongs in the commit.c. The commit popup has a title and a multi-line description — tab switches between them.ctrl+s to commit (esc cancels). The new commit appears at the top of the graph.Plain git: git add <file> then git commit
space. It moves back to Files; your edits stay in the working tree.Plain git: git restore --staged <file>
Switch with s. Local changes in the way? gg offers a worktree for the branch, an autostash carry-over, or a clean cancel — never a dead-end error.
b.enter. The cursor stays on the source branch — the new one is one row up.B instead of b to create the branch and switch to it in one go.Plain git: git branch <name> / git switch -c <name>
s, then confirm.Plain git: git switch <branch> (fails with local changes), git stash + switch + git stash pop
u soft-resets the last commit, ref-only — your files stay staged and nothing is lost.
u — from any panel, no confirmation. The last commit is undone with a soft, ref-only reset.c, or leave them staged.ctrl+p → Branch versions… holds the snapshot gg took before the undo — r restores it.Plain git: git reset --soft HEAD~1
The reflog tab recovers what git seems to have forgotten — reset to an entry, check it out, bookmark or shelf it, even for dangling commits.
ctrl+p, type branch versions and pick Branch versions….r to reset the branch to it and confirm.Plain git: digging through git reflog and git reset --hard <sha>
ctrl+→ — it flips to the Reflog tab.. on an entry offers: reset to it, check it out, bookmark it, or put it on the shelf. See Recover after reset --hard.Plain git: git reflog
w creates a worktree for the selected branch in the sibling <repo>.worktrees/ container; W creates and switches in one flow.
b to create the hotfix branch (or select an existing one).W and enter: gg creates a worktree for it and switches into it in one flow (in <repo>.worktrees/<branch>). w creates it without switching.Plain git: git worktree add ../hotfix fix/render-crash + cd
s — gg sees it is checked out in another worktree and offers to jump there; press enter.ctrl+s on the branch jumps straight to its worktree without asking.ctrl+→ on the top-left box until the Worktrees tab shows.d and confirm. The directory goes; the branch and its commits stay.Plain git: git worktree remove <path>
Built for very large monorepos: the UI stays responsive on repos the size of the Linux kernel, loading history in pages as you scroll.
ctrl+l loads the next batch on demand (300, 600, 900 commits…) without freezing.\ — the commit feed filter opens.tab moves between fields), then enter.\ again to change it. To clear it, use . → Clear filter, or erase all fields in the popup.Plain git: git log --author=<name> -- <path>
Delete a branch with d — and get it back when you change your mind: recovery works even after the branch is gone.
d and confirm.Plain git: git branch -d <branch> / git branch -D <branch>
ctrl+p, type branch versions and pick Branch versions… — deleted branches are listed too.enter to see its versions.r on the version and confirm: the branch is back, commits and all.Plain git: find the tip in git reflog, then git branch <name> <sha>
x opens the conflict process: every conflicted file in one list, your side and theirs region by region with the assembled result underneath. Keep ours here, take theirs there, apply — gg writes the file, marks it resolved and stages it.
m on the branch to merge, then m on main. The order sets the direction: the first branch you mark is merged into the second.enter.Plain git: git switch main && git merge <branch>
x — the conflict window lists every conflicted file. C keeps our side of the whole file.enter on a file: the line editor shows our side left, theirs right, region by region, with the result live underneath.c keeps our lines for the current region, i takes theirs, n jumps to the next region.ctrl+s writes the file, marks it resolved and stages it.c to continue the merge — gg writes the merge commit.Plain git: edit the <<<<<<< markers, git add, git merge --continue
x — a paused operation shows ⏸ … press [x] to continue or abort in the status bar, and x offers both.Plain git: git merge --abort / git rebase --abort
Reorder, squash and drop commits as rows: ctrl+arrow moves one, s squashes it into the commit it belongs to, d drops the junk, enter runs it. No rebase -i, no editor, no todo file.
m on your branch, then m on its base (e.g. main).enter. Your commits are listed as rows — no todo file, no editor.ctrl+↓ / ctrl+↑ moves a commit; s squashes it into the commit below (messages combined); d drops it. Pick and reword are there too.enter to run the rebase.Plain git: git rebase -i main
., type force.Plain git: git push --force-with-lease
One isolated checkout per agent — gg worktree add --branch agent-1 --hook runs a post-create hook to prepare it, and the Worktrees tab shows every checkout at once. gg also speaks MCP (gg mcp), so an agent can drive the client itself.
gg worktree add --branch agent/parser-crash --hook — one worktree and branch per agent.--hook runs the post-create hook committed in the repo's .gg.toml, so each checkout is prepared (dependencies, env files) before the agent starts.gg: all agents' branches show in one graph, and the Worktrees tab (ctrl+→ on the top-left box) lists every checkout.enter on the branch jumps to its newest commit in the graph — your working tree is not touched.enter again opens that commit's files and diffs.esc, then m on the branch, m on main, and merge. Other worktrees keep working, isolated.d discards a file's edits (keeping any staged hunks) after a confirmation modal; D discards all unstaged changes.
enter previews the diff (esc back).d and confirm. Only that file is reverted — other edits stay.. → Add to shelf (see Bookmarks & the shelf).Plain git: git restore <file>
D and confirm. Every unstaged edit is reverted and every new file deleted.Plain git: git restore . && git clean -fd
The merge-conflict editor, per-repo identity and commercial use — free, in your terminal, even over SSH. And it isn't Electron: the same client opens the Linux kernel's 1.46 million commits instantly.
, for settings and open Identity & profiles.Plain git: git config user.name / user.email (global vs --local)
C opens the amend popup with the current message already in the field; ctrl+s saves it. gg snapshots the branch before it rewrites anything, so ctrl+p → Branch versions lists the amend and r restores the commit exactly as it was.
C. The commit popup opens with the last commit's message already filled in.ctrl+s. The commit is rewritten with the new message.Plain git: git commit --amend
space on the Files panel), press C, then ctrl+s — the amend folds in whatever is staged.Plain git: git add <file> && git commit --amend --no-edit
ctrl+p → Branch versions…, pick the pre-amend version, r restores the old commit.u undoes the commit and hands the work back staged, b creates the branch it should have gone to, s switches and offers to carry the changes with you. Same work, right branch — no reset --hard, no cherry-pick dance.
u to undo the commit. The work comes back staged and main is clean again.b, type the new branch name and enter. The cursor stays on main — the new branch is one row up.s. Because you have uncommitted changes, gg offers a worktree, carrying the changes, or cancel — pick carry the changes (one row down; worktree is the default).space to stage them, then c, the message, and ctrl+s.Plain git: git reset --soft HEAD~1, git switch -c <branch>, git commit
Put the cursor on the commit, press ., filter for cherry — it replays onto the branch you're standing on and the branch it came from is untouched. No hashes copied between terminal windows.
., type cherry, choose Cherry-pick here and enter. The commit is replayed onto your current branch; the source branch is untouched.Plain git: git cherry-pick <sha>
s opens a stash with a name field and a checkbox per file, S lists them. The shelf lives in gg's own state outside the repo, so it survives resets, branch deletes and gc — stash for "later today", shelf for "don't lose this".
s. The stash popup takes a name and shows every changed file as a checkbox.space unticks the files you want to keep working on.ctrl+s stashes only the ticked files; the rest stay in your working tree.Plain git: git stash push -- <file>…
S to open the stash list; enter shows a stash's files.. — apply, pop or drop. S again closes the list.Plain git: git stash apply / pop / drop
. → Add to shelf; open the shelf with G; p restores an entry.A rejected non-fast-forward push becomes a choice — rebase onto their commits, force-push over them, or abort — with rebase as the default. When you genuinely must rewrite the remote, force-with-lease is offered first.
P to push. When the remote has commits you don't, git refuses; gg checks why and turns the refusal into a choice.enter rebases your commits on top of theirs and pushes in one step — nobody's work is lost.Plain git: git pull --rebase && git push
., type force.esc closes without pushing anything.Plain git: git push --force-with-lease
ctrl+g in the commit popup hands your staged diff to the AI agent you already use and writes an editable draft back. gg ships no model and doesn't phone home: it runs the command you configured, approval-gated and shown in full first.
c (or C to amend).ctrl+g. gg asks which agent and how to run it — the headless command is preselected; enter.enter.ctrl+s.gg review main..my-branch — or . → Review branch — hands the diff to your configured agent and prints file-and-line findings, saved under gg's state directory. No service, no upload, no pull request required.
gg review main..my-branch. gg hands the diff to your configured agent — no service, no upload, no pull request needed.., type review, enter.enter jumps to the branch tip.enter lists the commit's files with its reviews on top; open a review for its overview and each file's note count.enter on the overview shows the summary and verdict; open a file to see each finding boxed under the line it is about.x then t puts your agent in the external-tool picker next to your mergetool: it resolves every file, stages it and continues the merge through further rounds, then gg opens the agent's own overview for you to check. It never aborts and never pushes.
x for the conflict window, then t — the external tool picker.A bookmark is a pointer — . → Bookmark this file, then g to jump back to it. The shelf stores the content in gg's own state rather than the repository, so G still finds a file you discarded outright and p restores it.
., type bookmark, choose Bookmark this file.g from anywhere to open the bookmarks: enter jumps to the file, p pastes it into the working tree, y copies its path.., type shelf, choose Add to shelf — a frozen copy of its content.G to open the shelf, p to restore an entry, choose where it lands (the original path by default); gg asks before overwriting a file on disk.gg commit export-patch my-branch --out file.patch writes a real git am-able mailbox; gg apply --am file.patch recreates the commit on the other side with author and date intact — atomically, rolling back instead of leaving you half-applied.
The whole first run: install the single binary, type gg in any repository, tab to move focus, space to stage a file, c to open the commit box, ctrl+s to commit — and ? for the key list.
brew install homeend/tap/gg — or go install github.com/homeend/gigagit/cmd/gg@latest, or download a release from GitHub.gg --version. No daemon, no account, no config file needed. gg uses the git on your PATH.gg inside any repository.tab to the Files panel, space stages a file, c opens the commit box, type the message, ctrl+s commits.? shows every key, and the footer only shows the keys that apply right now.Fifteen things gg does, in one unbroken take on a real repository — a worktree per task, one-key undo, AI commit messages, branch versions, the conflict process, interactive rebase, the Linux kernel's 1.46M commits and gg mcp.
space, commit with c — how.u undoes the last commit — how; ctrl+g writes the message with your AI agent — how.m + m pairs two branches for merge, rebase, interactive rebase or compare; x resolves conflicts — merge, rebase.git add -p as a screen instead of a prompt: H on the Files panel opens the file hunk by hunk, i takes the working side and c the index side, n/p move between them, and a pane previews the assembled result live. enter touches only the index — H on Staged gives you the mirror picker that unstages.
H. The staging picker opens: index on the left, working tree on the right, nothing ticked yet.i to take the working side of the hunk under the cursor; n jumps to the next hunk (p back). A hunk you never tick is left out.↑/↓ (←/→ switch side) and tick them with space.ctrl+s to apply. Only the index changes — the file now shows in both Files and Staged.H on the Staged panel opens the mirror unstage picker (staged ↔ HEAD). Commit with c … ctrl+s; the rest stays in your working tree.Plain git: git add -p
p asks before anything moves, with No preselected, then names the fork instead of failing at you — rebase, merge, reset or abort, with the destructive one labelled destructive. Rebase still wants a clean tree and gg doesn't pretend otherwise: s stashes with a name and a checkbox per file, S pops it back.
p. gg asks first — the highlighted answer is No, so a stray key can't touch your tree; choose Yes.Plain git: git pull --rebase or git pull --no-rebase
tab to Files, s, choose the files, ctrl+s. (If the pull is blocked because files would be overwritten, gg offers to shelve them for you — see Pull blocked by local changes.)p again and choose rebase.S for the stash list, ., type pop, enter — your edits are back exactly as you left them.Plain git: git stash && git pull --rebase && git stash pop
The commit you need gone isn't the last one. enter on any commit in the feed shows the actual diff, . opens its action menu, and Revert writes a new commit with the exact inverse. Everything after it stays where it is and nothing is rewritten — which is why revert is the undo you can push.
enter opens its files and enter again its diff, so you know what you are reverting; esc back.., type revert (the whole word — rev also matches Review), enter.Plain git: git revert <sha>
u (undo) is simpler.The same two branches, run both ways, on one graph. m marks each branch and the pair menu offers Merge, Rebase, Interactive rebase or Compare — mark order sets the direction. Merge writes a merge commit; ctrl+p → Branch versions → r puts the branch back; rebase re-makes the same changes as new commits in a straight line.
m on one branch, m on the other, then pick Merge or Rebase. The first-marked branch is the one merged in or rebased.ctrl+p → Branch versions… — gg snapshotted the branch before the operation.r (reset branch) and confirm.Plain git: git reset --hard ORIG_HEAD (only right after)
reset --hardctrl+right flips the bottom box from Staged to Reflog, where the commits git reset --hard HEAD~3 walked away from are still listed with sha, message and age. . → Reset to this entry confirms, makes you pick soft/mixed/hard, and puts the branch back. Git keeps reflog entries for 90 days, so this works long after the panic.
gg, focus the bottom box of the left column and press ctrl+→ — it flips from Staged to Reflog.., type reset, choose Reset to this entry.Plain git: git reflog, then git reset --hard <sha>
. → Create tag here on the commit you're shipping: leave the message empty for a lightweight pointer, fill it in for a real annotated tag — the popup tells you which you're getting. The Tags tab lists the release history with the commit each points at and whether the remote has it, and gg tag create/push/checkout do the same from a script.
., type tag, choose Create tag here, enter.tab, write the message, enter. With a message you get an annotated tag (author, date, message); leave it empty for a lightweight one.Plain git: git tag -a v1.0.0 -m "…"
ctrl+→ for the Tags tab — every tag, newest first, with its commit.. on a tag: check it out, merge or rebase against it, or push it to the remote.gg tag ls, gg tag create, gg tag push, gg tag checkout.Plain git: git tag, git push origin <tag>
ctrl+p → File blame on any path, without opening the file first: every line tagged with its commit, author and age, consecutive lines grouped so you read the file instead of a column of shas. Recorded on the Linux kernel's kernel/sched/core.c — and enter on a line opens that file's history at that commit, diff beside it.
ctrl+p, type blame, choose File blame, type the path (e.g. kernel/sched/core.c) and enter — you don't need the file open first. b on a file in any file list opens it too.enter: the file's history opens at that commit, with the diff beside it.esc brings you back to the same line of the blame.Plain git: git blame <file>
F fuzzy-finds across all 94,852 tracked files of the Linux kernel. The commit feed is paged — that's why the repo opened in a second — so / filters only what's loaded and ctrl+f keeps paging backwards through history until it finds a real match. \ opens a proper filter by path, author, message or date range.
F — the file finder lists every file in the working tree./ and type part of the name; the list narrows as you type. esc twice closes it (query, then window).Plain git: git ls-files | grep <name>
/ and type — it filters the commits already loaded.ctrl+f: it pages back through unloaded history until it finds the next real match.\ (or . → filter) — see Linux-kernel scale.Plain git: git log --grep=<text>
In gg detached HEAD is the first thing on screen: the title bar reads branch (detached) and the feed's label column says HEAD on every row. A commit made while detached forks onto a lane of its own that no branch points at. The fix is one line — gg branch create rescue-lane uses exactly where you are, gg switch re-attaches you, and the same commit now has a name.
(detached) in the title bar and labels commits HEAD instead of a branch name; commits made now sit on a lane of their own.gg branch create rescue-lane — with no start point it branches from exactly where you are.gg switch rescue-lane. HEAD is attached again and the commits are safe.b in the Branches panel for this — it branches from the selected row, not from HEAD. And switching away first strands the detached commits.Plain git: git switch -c rescue-lane
claude mcp add --scope project gg -- gg mcp wires up gg's stdio MCP server. It deliberately exposes no git operations — the agent has the gg CLI for those — only what nothing else knows: bookmarks, the shelf, comparisons between any two versions, and gg_ui_state, what your terminal is showing right now. Recorded with a live claude -p call reading back a file shelved seconds earlier.
claude mcp add --scope project gg -- gg mcp. Project scope writes .mcp.json into the repo, so the whole team gets it.gg mcp command.gg command line for those. Try: claude -p "what is on my gg shelf?".S stacks every file of a commit into one syntax-highlighted scroll, like a pull request's Files changed tab. f folds the unchanged lines, / searches the whole commit, J jumps to a file by name.
enter (or press # and paste a commit id to jump straight to it).S — every file in the commit becomes one continuous scroll.f folds away unchanged lines; _ folds every file to a header with its +/- counts — the whole commit on one screen.N jumps to the next file, n to the next change, across file boundaries.S again goes back to one file at a time.Plain git: git show <commit>
S), press /, type the text and enter — it searches the whole commit, not one file.] walks from hit to hit, into the next file.J jumps to a file by name: type part of it, enter.Compare shows every difference between two tips — including the other branch's own work. Merge preview shows only what the merge will bring in, and stays live in the Previews tab.
m on the branch, then m on the branch you'd merge into (e.g. main).enter opens a file, f shows only the changed lines.ctrl+→ on the top-left box). It stays live — when either branch moves, the row updates; enter reopens it.Plain git: git diff main...feature
m on one branch and m on the other, then pick Compare — the plain diff between the two tips.Plain git: git diff main..feature
Review a branch without a pull request: c anchors a note to a line or a range of lines, the file list counts the notes, and ctrl+p → View all notes lists every note in the repository.
enter, enter).j / k to the line and press c.tab, the reasoning, then ctrl+s to save.space starts a mark, move down, space again, then c — one note over the whole range.ctrl+p, type all notes, choose View all notes — grouped by commit and file, with author, location and time.enter on a note jumps straight to its line in its diff.Instead of making yet another worktree, hand an existing one over to a new branch. Leftover work in it is committed, shelved or discarded — your choice — first.
., type recycle, choose Recycle a worktree — gg lists every checkout it could hand over.G, named after the worktree and branch; p restores it.Plain git: commit or stash in the worktree, then git -C <worktree> switch <branch>
alt+1…alt+5 toggle per-repo branch filters — by age, prefix, suffix or regex — defined in .gg.toml so the whole team shares them.
, → branch filters) or in the repo's .gg.toml, so the team shares it.alt+1 to toggle the first filter; alt+2…alt+5 are the other slots. The same key turns it off.d to delete it; for unmerged branches gg asks a second time. Branch versions can still restore it.Plain git: git for-each-ref --sort=committerdate refs/heads/
agent/) — by age, prefix, suffix or regex — in Settings → branch filters or .gg.toml.alt+<slot> key on the Branches panel.Where git says “Binary files differ”, gg draws the old and new image in the terminal — side by side, stacked, or one at a time.
tab to Files (or open a commit) and press enter.ctrl+w switches the layout: stacked (old above new), then one at a time — tab flips between old and new in the same spot.Plain git: git diff only prints “Binary files differ”
When git pull says your local changes (or an untracked file) would be overwritten, gg names the files in the way and offers to shelve or discard them — then pulls.
p and confirm (the default answer is No — choose Yes).G to see the shelved entry; p restores it whenever you're ready (gg asks before overwriting). Choose discard instead if the local change was throwaway.Plain git: git stash -u && git pull && git stash pop
p, and gg offers to shelve them together with any edits (plain git stash skips untracked files).Every review remark is a thread, like a pull request comment: R replies, x resolves it and folds it away, and your agent can read the answers back.
} jumps to the next remark.R replies in the thread; write it and ctrl+s.x resolves the thread — it folds to one line. o unfolds it, x again reopens it.gg review show and answer in the same threads.Start Claude Code (or Codex, Junie, …) in a branch's worktree from inside gg. Its console docks over the graph, its row says when it needs you, and ctrl+\ lists every session.
., type agent, choose Start agent — gg lists the coding agents it found (Claude Code, Codex, …); pick one.ctrl+] steps out of an agent's console; it keeps working, and its row under the branch shows what it's doing.enter to type into its console again.alt+a walks your agent sessions; ctrl+\ lists every agent and terminal gg runs — k kills a session, x removes it./gg-delegate in an agent's console prepares a worktree, briefs a worker agent and starts it — then gets out of the way. The worker prints its task, does the work, and ends with its result in its own console.
. → Start agent) on your branch. The worker command must be one you allowed and approved once./gg-delegate followed by the task in plain words (which worktree or branch, what to do).alt+a walks your agents: the worker's console shows the task it got and ends with its result — what changed and the commit. It stays open for follow-up questions.Instead of reading an agent's whole diff cold, read its walk-through: stored on the commit, shown beside the real code, each link jumping to the exact lines.
gg-overview skill), or save one with gg overview save. It is stored on the commit it explains — marked ≡ in the graph and as a row under the branch.enter: the walk-through on the left, the real file at that commit on the right, with the first link's lines marked.↓ / ↑ walk the links — the file follows, even into other files. The agent's remarks sit boxed under the lines they're about.tab gives the keyboard to the file; D flips it to the commit's diff of that file; S stacks every file the overview mentions in one scroll.. menu exports it as one HTML file to send to someone without gg.alt+w walks every worktree of the repo — its branch, its files, its uncommitted changes — without cd or a new terminal.
alt+w: the first press shows where you are.tab and enter look around as in any checkout.alt+w first closes what's open and shows your current worktree; keep pressing to go round. Past the last one it comes back to yours; the status line shows where you are (e.g. 3/3).Plain git: cd ../<worktree> in another terminal
An AI review leads with a count of issues, suggestions and nitpicks; each remark says its kind, severity and confidence. Mark each one agreed, disagreed or deferred.
} to the first remark — its header shows the kind, severity and audience, with the agent's confidence below.., type mark, choose Mark… → agreed. The remark carries your verdict and your name.} to the next; mark it disagreed — or deferred for later.A git that was killed, crashed or lost power leaves .git/index.lock behind, and git refuses to stage, commit, switch, merge, rebase, stash or pull. gg spots the stranded lock when it opens, shows what it blocks, and removes it when you say so.
!, then enter for the details: which lock (index.lock), how old it is, its full path, and what it blocks: staging, committing, switching branches, merging, rebasing, stashing and pulling.Plain git: rm -f .git/index.lock, after checking that no git process is running
gg unlock lists stranded locks and exits with 1 while any is present; gg unlock --yes removes them.A workspace opens up to ten repositories together: every repository's branches in one list, and enter on another repository's row switches the whole screen to it, with its commits, files and diffs.
ctrl+p, type work and press enter to open Workspaces….n, name the workspace and press enter. Then enter on it, and a to add repositories: the one you're in first, then any other by path (Path…, e.g. ../website), up to ten.esc, then o to open the workspace. The Branches panel lists each repository under its own heading, and every one stays watched.enter on another repository's row to switch to it: its commits, its files, its diffs. Stage and commit there as usual.Plain git: a terminal (or cd) per repository
gg in any of its repositories: gg asks whether to open the workspace or just that repository; enter opens the workspace. gg --workspace <name> skips the question.alt+w steps through every worktree's files, branch and conflicts; alt+q walks the shown worktree's own screens — your open windows, its agents, its terminals, the plain worktree — and back to your windows as you left them.ctrl+p → Workspaces…, or gg --workspace <name>). The Branches and Worktrees tabs list every member under its own heading, every member stays watched, and alt+w / alt+a / alt+t walk every member's worktrees and sessions. Each member keeps its own templates, tools, filters and refresh settings.ctrl+g writes a commit message from the staged diff, gg review reviews a branch before the PR, and t in the conflict window hands a paused merge to your agent. gg ships no model: it runs the command you configured, shows it in full, and remembers your approval per repo.ctrl+p → Branch versions, r restores), and the shelf keeps frozen copies of files and commits in gg's own state, surviving resets, branch deletes and gc.. → Start agent on a worktree runs Claude Code, Codex, Junie, Antigravity, Kimi Code (or any command you configure) in a live console inside the TUI; ctrl+\ lists every session, and an agent keeps running when you close its console./gg-delegate <task> in an agent's console prepares a worktree, briefs a worker agent and starts it; the worker shows its task and its result in its own console — the brief's rules go to the worker alone, and its brief and report open as tours that jump into its files.c in the diff view, gg note add on the CLI); gg review --notes imports an agent's review as anchored notes, note meta shows an agent's kind and severity as coloured badges, and View all notes lists every thread across the working tree, commits and shelf. L copies a gg:// link to a line or range that opens the same place again — paste it to an agent and it reads the lines with gg link text./gg-cross-review runs two or three copies of the agent on different models, settles their disagreements and stores one review; gg overview save keeps an agent's overview permanently on a commit, branch tip or pull request; an overview opens beside the code it links to in the TUI and gg web, walking its anchors steers the file, and Export as HTML saves it as one self-contained file you can hand to someone without gg. An agent's overviews and notes are files in the worktree, so they outlast a closed window: ctrl+\ → Overviews & notes lists them as a tree, each overview with the files it uses underneath, in the terminal and gg web alike.ctrl+p) serves gg web from the running gg: diffs with line staging, image diffs, a file viewer, reviews, and the same live agent consoles as the terminal. Every sidebar section has a search box (remotes, tags and the reflog are searched across the whole list), and check out remote branch… takes any branch name you type or paste, fetched or not.gh logged in, gg pr list / view / comments / fetch and the Pull requests tab read PRs, threads and review verdicts; Send to GitHub (gg pr send, or the panel in the TUI and gg web) posts the notes, AI remarks and draft replies you tick as one review, after one confirm. Agents never send — they write local notes, you post them.(↓N) — and any operation you start cancels that fetch and goes first; background fetches never start git's auto maintenance or a login window.gg mcp gives AI agents what only gg knows — the live TUI state, bookmarks, shelves, comparisons, links and review notes — read-only, with mutating tools gated by your client's consent.Latest release: v0.5.10.
Requires a git binary on PATH (and Go 1.26 for the go install route).
# Homebrew (macOS / Linux)
brew install homeend/tap/gg
# or install the latest from GitHub (binary lands in $GOBIN / $GOPATH/bin as `gg`)
go install github.com/homeend/gigagit/cmd/gg@latest
Run gg with no arguments to open the interactive UI.
gg (GigaGit) is a fast terminal git client for very large monorepos — GitKraken's one-key smart operations with lazygit's keyboard-driven TUI. One binary gives you both a rich interactive TUI and a fully scriptable CLI.
It aims at the sweet spot between them: lazygit's keyboard-first terminal workflow, combined with GitKraken-style smart operations — multi-step flows like pull-with-divergence, switch-with-local-changes or worktree create-and-cd become single keystrokes that only ask you a focused question when there's a real decision to make. And it's built to stay fast on repos where ordinary git tooling gets slow.
The demos above are short videos from the code-drill YouTube channel — most show a single workflow in about a minute, from browsing the Linux kernel's history to letting an AI agent resolve a merge conflict, and one runs through fifteen features in a single take.
Every video also has a written, step-by-step recipe underneath — the exact keys for each task it shows — and the How do I…? index at the top of that section lists every question they answer.
No. gg shells out to your system git binary for every operation, so it works with your existing git version, config, hooks and credentials.
It's cross-platform — Linux, macOS and Windows.
brew install homeend/tap/gg (macOS/Linux), or go install github.com/homeend/gigagit/cmd/gg@latest with Go installed. See the README for building from source.
Actively developed and ready for daily use: the worktree-aware engine, one-key smart operations (pull / switch / merge / rebase / commit / stash / undo), interactive rebase, conflict resolution, the keyboard TUI and the scriptable CLI are all in place, along with agent consoles, review notes, AI reviews with overviews, sending reviews to GitHub pull requests and the browser UI. The latest release is v0.5.9; no 1.0 tag has been cut yet.
Yes, three ways. gg can run agents itself — Claude Code, Codex, Junie and others in live consoles inside the TUI or the browser page — and an agent in one of those consoles can hand a task to a worker agent in another worktree (/gg-delegate). Agents never send anything to GitHub: they write local notes and reviews, and you send them. gg mcp serves agents what only gg knows (the live TUI state, bookmarks, shelves, comparisons, review notes), read-only, with mutating tools behind your MCP client's consent prompt. And the CLI is fully scriptable, so it works from any agent or script.
gg is source-available under the PolyForm Noncommercial License 1.0.0: free for personal, hobby, research, educational and non-profit use; commercial use needs a license from the author (see COMMERCIAL.md). Releases through v0.3.0 were published under MIT and remain so.