Skip to main content
Common tasks and their commands. Click any command to see full documentation in the command reference.

Viewing your stack

TaskCommandShort Form
See full information about all of your branches and their PRsgt log
See all of your branchesgt log shortgt ls

Creating and modifying branches

TaskCommandShort Form
Create a new branchgt creategt c
Create a branch, stage all, commit with messagegt create --all --message "message"gt c -am "message"
Amend staged changes to current branchgt modifygt m
Stage all changes and amend them to current branchgt modify --allgt m -a
Add a new commit to current branchgt modify --commitgt m -c
Stage all changes and add a new commit to current branch with messagegt modify --commit --all --message "message"gt m -cam "message"

Syncing and submitting

TaskCommandShort Form
Pull trunk, clean up merged branches, restackgt sync
Push current branch and all downstack branches to remote and create/update PRsgt submit
Push all branches in current stack to remote and create/update PRsgt submit --stackgt ss
Only push branches and update PRs for branches that already have PRs opengt submit --stack --update-onlygt ss -u
TaskCommandShort Form
Switch to a specific branchgt checkoutgt co
Move up one branchgt upgt u
Move down one branchgt downgt d
Move up/down multiple branchesgt up 3, gt down 2gt u 3, gt d 2
Go to the top of the stackgt topgt t
Go to the bottom of the stackgt bottomgt b

Reorganizing your stack

TaskCommandShort Form
Move branch to a new parentgt move
Fold branch into its parentgt fold
Delete branch but keep changes in working treegt pop
Reorder branches in your stackgt reorder
Split branch into multiple branchesgt splitgt sp
Squash all commits in branch into onegt squashgt sq
Distribute staged changes to downstack branches by amending relevant commitsgt absorbgt ab

Recovery

TaskCommandShort Form
Undo the most recent Graphite mutationgt undo

Tracking branches

TaskCommandShort Form
Start tracking an existing Git branch with Graphitegt trackgt tr
Stop tracking a branchgt untrackgt utr

Collaborating

TaskCommandShort Form
Fetch a teammate’s stack locallygt get
Freeze a branch to prevent accidental editsgt freeze
Unfreeze a branchgt unfreeze