@satishchadive/gxi
v1.0.1
Published
Git express — tiny CLI shortcuts for everyday GitHub workflows
Downloads
203
Readme
gxi — git express
Tiny CLI shortcuts for everyday GitHub workflows. Install once, type less forever.
Install
npm install -g @satishchadive/gxiThen use the gx command anywhere inside a git repo.
Setup (AI commit messages)
export ANTHROPIC_API_KEY=sk-ant-... # add to ~/.zshrc or ~/.bashrcWithout the key, commit messages fall back to conventional commits derived from file names.
Commands
| Command | Description |
|---------|-------------|
| gx p | Stage all → AI commit → push (auto-rebases if push is rejected) |
| gx p -m "msg" | Same with a custom message |
| gx rb | Fetch → rebase onto main/master → force-push |
| gx rb --cont | Continue after resolving rebase conflicts |
| gx rb --abort | Abort an in-progress rebase |
| gx s | Compact status |
| gx d | Diff (-s staged, --stat summary) |
| gx l | Pretty graph log (-n 30, -a all branches) |
| gx b | Branches (-r remote, -a all) |
| gx sw <branch> | Switch branch (auto-creates from remote if needed) |
| gx nb <name> | New branch off latest main/master |
| gx st [msg] | Stash with auto timestamp label |
| gx sp | Stash pop |
| gx sl | Stash list |
| gx ud | Undo last commit (keeps changes staged) |
| gx sq <n> | Squash last N commits (AI message) |
| gx sync | Fetch + rebase onto tracked upstream |
| gx cp <hash> | Cherry-pick a commit |
| gx rv | Safe revert of last commit |
| gx cl | Delete local merged branches |
| gx who | Show git user & remote info |
License
MIT
