Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mrmans0nv0.10.11-devMITIn 1 marketplace
Splits a large change into a chain of small commits, each opened as its own GitHub PR or GitLab MR, then syncs, lands and recovers the stack with gg. Needs the gh or glab CLI authenticated to your provider; the README's setup section is incomplete.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A stacked-diffs CLI tool for GitHub and GitLab, inspired by Gerrit, Phabricator/Arcanist, and Graphite.
Stacked diffs allow you to break large changes into small, reviewable commits that build on each other. Each commit becomes its own Pull Request (GitHub) or Merge Request (GitLab), with proper dependency chains. This enables:
You can read more here or here.
brew install mrmans0n/tap/gg-stack
cargo install gg-stack
git-gud automatically detects your remote provider from the URL (github.com or gitlab.com) and uses the appropriate CLI tool.
Self-hosted instances: For GitHub Enterprise or self-hosted GitLab (e.g.,
gitlab.mycompany.com), rungg setupto manually select your provider.
Authenticate with your provider before using git-gud:
# For GitHub
gh auth login
# For GitLab
glab auth login
On supported GitHub repositories, a full gg sync can also reconcile the
native GitHub Stacked PRs map and UI. This is a GitHub public preview; git-gud
continues to own its local stack metadata and ordinary GitHub sync works
without the optional extension.
Install GitHub's official extension when you want this integration:
gh extension install github/gh-stack
Configure defaults.github.stacks_integration in .git/gg/config.json or
your global config:
| Value | Behavior |
|---|---|
off | Never inspect or update GitHub Stacked PRs. |
auto | Best-effort integration when the extension and repository support are available. |
force | Uses the same safe integration as auto, but makes missing capabilities visible as warnings. |
The default is auto. force does not bypass extension-version, repository,
or create/append-only safety checks.
# Create a new stack
gg co my-feature
# Make changes and commit (normal git workflow)
git add . && git commit -m "Add data model"
git add . && git commit -m "Add API endpoint"
git add . && git commit -m "Add UI component"
# View your stack
gg ls
# Sync with remote (creates PRs/MRs)
gg sync --draft
# Navigate within the stack
gg first # Go to first commit
gg next # Go to next commit
gg prev # Go to previous commit
gg last # Return to stack head
# After review feedback, modify a commit
gg mv 1 # Move to commit 1
# make changes...
gg sc # Squash changes into current commit (or: gg amend)
# Land approved PRs/MRs
gg land --all
# Clean up merged stacks
gg clean
📚 Full documentation — guides, command reference, configuration, and more.
gg co and gg unstack --wt support managed Git worktrees so you can develop a stack in its own checkout while keeping your original repository working tree untouched.
gg co my-feature --wt
# or
gg co my-feature --worktree
This creates (or reuses) a managed worktree for the stack and checks it out there. To also move your shell into that worktree automatically, enable shell integration:
# zsh
eval "$(gg init zsh)"
# bash
eval "$(gg init bash)"
# fish
gg init fish | source
gg unstack --target 3 --name upper-feature --wt
This keeps your current directory on the lower stack and creates or reuses a managed worktree for the new upper stack.
By default, git-gud creates worktrees next to your repository using:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mrmans0n/git-gud --plugin git-gudPlugins from other owners that cover similar ground