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.14-devMITIn 1 marketplace
Split a large change into a stack of dependent PRs or MRs, one commit each, and keep the stack rebased as you amend. Drives the gg CLI, which uses gh or glab for the repository's host.
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.
Stacked diffs for GitHub and GitLab, from your terminal. Inspired by Gerrit, Phabricator/Arcanist, and Graphite.
Documentation · Install · Quick start · Commands
Prefer a GUI? Alas is the macOS app for git-gud.
Some changes are too big for one PR. You can send the 1000-line monster and hope somebody reviews it, or split it into dependent branches and rebase every one of them by hand each time the first one changes.
Stacked diffs fix that. You keep committing as usual, and each commit becomes its own Pull Request (GitHub) or Merge Request (GitLab) that targets the one before it. gg opens and updates the PRs/MRs, and rebases the rest of the stack when you amend an earlier commit.
gg drives the official gh and glab CLIs, so it works with the login you already have on either provider.
New to the workflow? Read The Pragmatic Engineer's overview or Graphite's guide. Introducing git-gud has the story behind this tool.
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
A stack is a branch where every commit is its own PR/MR. Create one, commit to it with plain git, and let gg handle the rest.
# 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
# 1. Start a new feature
$ gg co user-auth
OK Created stack "user-auth" based on main
# 2. Develop incrementally
$ git add . && git commit -m "Add user model"
$ git add . && git commit -m "Add auth endpoints"
$ git add . && git commit -m "Add login UI"
# 3. Check your stack
$ gg ls
user-auth (3 commits, 0 synced) ↓2
[1] abc1234 Add user model (id: c-f9a1e2b) (not pushed)
[2] def5678 Add auth endpoints (id: c-7c1b9d0) (not pushed)
[3] ghi9012 Add login UI (id: c-98ab321) (not pushed) <- HEAD
# 4. Push to remote
$ gg sync --draft
OK Pushed nacho/user-auth--c-f9a1e2b -> MR !101 (draft)
https://gitlab.com/user/repo/-/merge_requests/101
OK Pushed nacho/user-auth--c-7c1b9d0 -> MR !102 (draft)
https://gitlab.com/user/repo/-/merge_requests/102
OK Pushed nacho/user-auth--c-98ab321 -> MR !103 (draft)
https://gitlab.com/user/repo/-/merge_requests/103
# 5. Address review feedback on commit 1
$ gg mv 1
OK Moved to: [1] abc1234 Add user model
$ # make changes...
$ gg sc # or: gg amend
OK Squashed into abc1234
OK Rebased 2 commits on top
# 6. Re-sync
$ gg sync
⚠ Your stack is 2 commits behind origin/main. PRs may show unrelated changes. Run 'gg rebase' first to update.
? Rebase before syncing? [Y/n]
OK Rebased stack onto main
OK Force-pushed nacho/user-auth--c-f9a1e2b
OK Force-pushed nacho/user-auth--c-7c1b9d0
OK Force-pushed nacho/user-auth--c-98ab321
# 7. Land when approved
$ gg land --all
OK Merged MR !101 into main
OK Merged MR !102 into main
OK Merged MR !103 into main
# 8. Clean up
$ gg clean
OK Deleted stack "user-auth" (all merged)
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