حول
The fastest stacked-branch workflow for Git. Interactive TUI, smart PRs, safe undo. Written in Rust.
أدوات التطويرالنمو المقاس للنجوم
- خلال 24 ساعة
- +٥
- خلال 7 أيام
- +١١
- خلال 15 يومًا
- +١٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلBuild the UI on top of the API branch instead of waiting for the API to merge. Each gets its own PR, and reviewers see only what that branch adds. stax tracks which Git branches build on each other, opens PRs against the right base, and rebases the remaining branches when the base changes.
Install
brew install cesarferreira/tap/stax
Or use cargo binstall stax. See the installation guide for prebuilt binaries, Windows, and source builds. Both stax and its short alias st are installed.
Quickstart
Run st setup once to configure GitHub auth and shell integration. Then, in a GitHub repo you can push to, start on a clean, up-to-date main. Create an API branch, then stack the UI and tests on top of it as siblings:
st create auth-api
echo "Token refresh API" > auth-api-demo.md
git add auth-api-demo.md
git commit -m "Document the token refresh API"
st create auth-ui
echo "Token refresh UI" > auth-ui-demo.md
git add auth-ui-demo.md
git commit -m "Document the token refresh UI"
st create auth-tests --from auth-api
echo "Token refresh test cases" > auth-tests-demo.md
git add auth-tests-demo.md
git commit -m "Outline the token refresh tests"
st ls
◉ auth-tests 1↑
│ ○ auth-ui 1↑
○─┘ auth-api 1↑
○ ☁️ main
Read it from the bottom up: auth-api builds on main, then the stack splits. Both auth-ui and auth-tests build on auth-api, not on each other. ◉ marks the checked-out branch; 1↑ means one commit ahead of the parent.
To open PRs for both sides of the split, submit from their shared base:
git switch auth-api
st upstack submit
This opens auth-api against main and both auth-ui and auth-tests against auth-api. The UI and tests can be reviewed independently.
Once auth-api merges, run st refresh from each remaining branch to rebase it and update its PR.
Setup and auth help · Merge and cascade guide
Commands
| I want to… | Run |
|---|---|
| Create a branch on top of the current one | st create <name> |
| See my stacks and PR status | st ls |
| Switch branches (pick interactively or pass a name) | st co / st co <branch> |
| List checkout choices for a script or external picker | st co --list --json |
| Open or update PRs for the current stack | st ss |
| Open or update PRs for the current branch and all its descendants | st upstack submit |
| Preview a submit without making changes | st ss --plan |
| Sync trunk, rebase, and update the stack's PRs | st refresh |
| Catch up after working on another machine | st status --remote, then st pull |
| See which CI checks are failing | st ci |
| Merge from the bottom up to my current PR | st merge |
| Recover local branch state after a restack or sync | st undo |
Core commands · Full command reference
Beyond the basics
Run st to browse branches, diffs, and CI in the terminal UI, or run st web for the local browser workspace.

- Native GitHub stacks.
st ssregisters a native GitHub stack when the repo has the feature enabled and thegh-stackextension is installed. Otherwise you still get linked PRs. GitHub setup → - Parallel work. Use
st wtto manage Git worktrees, orst laneto run each AI coding session on its own branch and worktree. AI is optional; it can also draft PR text or help resolve a rebase conflict. Agent lanes → - Recover from a bad restack.
restack,submit,sync, andreordersnapshot local branch state.st undorestores that state; it doesn't roll back GitHub changes. Undo and redo →
More resources
Configuration · tmux plugin · AI agent instructions · Freephite and Graphite compatibility · Benchmarks
Contributing? See repository guidelines and the release workflow.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…