Stacked PR workflow with the Graphite CLI (gt) — create stacks, submit, sync, restack, split/squash/fold, track existing branches, collaborate on shared stacks, configure repo/CI for Graphite, and operate the merge queue.
70
88%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Pull a teammate's branch (and its full stack) into the local repo so you can review, extend, or build on top. User input: $ARGUMENTS.
git status --short). If not, ask the user to commit or stash first.gt get <branch>. Graphite fetches the branch and every ancestor up to trunk, tracking each one.--unfrozen.gt ls to show the user the new stack alongside any existing local stacks.To extend a teammate's stack:
gt co <their-branch> # navigate to it
gt unfreeze <their-branch> # if you'll modify it; otherwise skip
# make changes
gt create -am "your addition" # stack your branch on top
gt submit # opens your own PRTo just review without editing, leave the branch frozen — gt sync will still keep it current with the remote.
-d, --downstack — fetch only this branch's ancestors (default is full stack)-u, --remote-upstack — also fetch children pushed by the teammate--unfrozen — bring in unfrozen so local edits are immediately allowed-f, --force — overwrite any local copies of the same branch