Skip to main content

Documentation Index

Fetch the complete documentation index at: https://gx.mubbie.dev/llms.txt

Use this file to discover all available pages before exploring further.

Basic Commands

Once installed, you can use gx in any git repo:
# See your repo status at a glance
gx context

# Switch branches interactively
gx switch

# Undo the last git action (commit, stage, merge, rebase)
gx undo

# Fix the last commit message
gx oops -m "better message"

# Add a forgotten file to the last commit
gx oops --add src/forgot.ts

# See who knows the code best
gx who

# What did I do today?
gx recap

# Stash with a name you'll remember
gx shelf push "working on auth"

Stacked PRs

gx has built-in support for stacked branch workflows:
# Initialize (optional, auto-detects)
gx init

# Create stacked branches
gx stack feature/auth main
gx stack feature/tests feature/auth

# See the stack
gx graph

# Sync the whole chain (rebase + push)
gx sync --stack

# Navigate without remembering names
gx up
gx down
gx top
gx bottom

# Generate a PR summary
gx handoff --markdown --copy

Getting Help

Every command has --help:
gx undo --help
gx sync --help
gx shelf push --help
Running bare gx shows the grouped command list.