Git Productivity Toolkit. 25 commands for everyday git, stacked PRs, and code insight.
# Homebrew (macOS / Linux)
brew tap mubbie/tap && brew install gx-git
# Go
go install github.com/mubbie/gx-cli@latest
# pip / pipx (Python)
pipx install gx-git
# Or download a binary from GitHub Releasesgx: Git Productivity Toolkit
Setup:
init
Everyday:
undo, redo, oops, switch, context, sweep, shelf
Insight:
who, recap, drift, conflicts, handoff, view
Stacking:
stack, sync, retarget, graph, up, down, top, bottom, parent
Utility:
nuke, update
gx context # Where am I?
gx switch # Pick a branch
gx undo # Undo the last git action
gx oops -m "better message" # Fix the last commit
gx who # Who knows this code
gx shelf push "wip" # Stash with a nameStacked PRs:
gx stack feature/auth main # Create a tracked branch
gx stack feature/tests feature/auth # Stack another on top
gx graph # Visualize the stack
gx sync --stack # Rebase and push the chain
gx up / gx down # Navigate the stack
gx handoff --markdown --copy # Generate PR summarySee the full documentation for detailed usage, flags, and examples for every command.
- Fork the repo
- Create a feature branch (
gx stack feature/my-thing main) - Make your changes
- Run
go build && go vet ./... - Open a PR