Graphite notes

2022-12-17

Combos

Pull down default branch, remove merged branches

gt repo sync -fr

Add gt ss to restack all current stacks onto the newly pulled down default branch:

gt repo sync -fr && gt ss

Shortcuts

The full list is available in the official Graphite Documentation.

commandshortcut
gt loggt l
gt log shortgt ls
gt branch trackgt btr
gt branch checkoutgt bco
gt branch up [steps]gt bu [steps]
gt branch down [steps]gt bd [steps]
gt branch topgt bt
gt branch bottomgt bb
gt branch creategt bc
gt commit creategt cc
gt commit amendgt ca
gt stack submitgt ss
gt repo syncgt rs

Rebasing

commandshortcut
gt upstack restackgt usr
gt upstack ontogt uso
gt upstack ontogt uso