gt --help
gt branch checkout
).git pull
)gt repo sync
gt branch create
gt commit create
gt commit amend
gt stack fix
gt upstack onto
gt stack submit
gt downstack submit
gt upstack submit
gt log
gt feedback
commit
commit
commands to using their underlying git equivalents. Graphite's commit
commands utilize Graphite's understanding of our stack to fix your stack after the commit creation/amend, minimizing merge conflicts.gt commit
commands can also be accessed by the shortcut gt c
.gt commit create
as gt cc
, noted below.gt commit create
** or ** gt cc
-a
--all
-m <message>
--message <message>
gt commit amend
** or ** gt ca
-a
--all
-m <message>
--message <message>
-n
--no-edit
branch
gt branch
commands can also be accessed by the shortcut gt b
.gt branch checkout
as gt bco
, noted below.gt branch create <name>
** or ** gt bc <name>
-a
--add-all
-m <message>
--commit-message <message>
gt branch checkout
** or ** gt bco
--branch <name>
gt branch checkout main
.gt branch up
** or ** gt bu
gt branch down
** or ** gt bd
-n <steps>
--steps <steps>
n
branches instead.gt branch top
gt branch bottom
gt branch children
gt branch parent
gt branch submit
gt branch rename
gt branch delete
git branch -d
-
f
--force
git branch -D
)gt branch edit
git rebase --interactive
over the commits on the current branch.gt branch show
git log
over the commits on the current branch.-p
--patch
git log -p
)gt branch pr-info
stack
gt stack
commands can also be accessed by the shortcut gt s
.gt stack submit
as gt ss
, noted below.gt stack fix
** or ** gt sf
--rebase
--regen
gt stack validate
gt stack submit
** or ** gt ss
$EDITOR
environment variable.--draft
--no-draft
--no-edit
--no-edit
is set, the associated PRs will be opened as drafts.--dry-run
--reviewers
gt stack test <command>
downstack
gt downstack
commands can also be accessed by the shortcut gt ds
.gt downstack submit
gt downstack validate
gt stack
counterparts (with the same options), but operate only on the downstack (inclusive) branches in the stack.gt downstack edit
gt downstack sync
upstack
gt upstack
commands can also be accessed by the shortcut gt us
.gt upstack submit
gt upstack validate
gt stack
counterparts (with the same options), but operate only on the upstack (inclusive) branches in the stack.gt upstack onto <branch>
repo
gt repo
commands can also be accessed by the shortcut gt r
.gt repo init
.git/.graphite_repo_config
file.--trunk
--ignore-branches
gt repo ignored-branches
.git/.graphite_repo_config
file inside your repo directory.--add
--remove
gt repo sync
** or ** gt rs
--show-delete-progress
gt repo sync
in a long-standing git repo with tens/hundreds of dead branches where Graphite has just been initialized.)-f
--force
--no-delete
or --no-resubmit
--no-pull
--no-delete
--no-resubmit
--no-show-dangling
gt repo fix
--show-delete-progress
gt repo sync
in a long-standing git repo with tens/hundreds of dead branches where Graphite has just been initialized.)-f
--force
gt repo max-branch-length
gt repo max-branch-length
. Graphite will track up to this many commits on a branch. e.g. If this is set to 50, Graphite can track branches up to 50 commits long.--set <max-branch-length>
max-branch-length
.gt repo max-days-behind-trunk
max-days-behind-trunk
. Graphite will track branches up to max-days-behind-trunk
days behind trunk.--set <max-days-behind-trunk>
max-days-behind-trunk
.gt repo max-stacks-behind-trunk
max-stacks-behind-trunk
. Graphite will track the most recent max-stacks-behind-trunk
number of stacks behind trunk.--set <max-stacks-behind-trunk>
max-stacks-behind-trunk
.gt repo name
--set <name>
gt repo owner
--set <owner>
gt repo trunk
--set <trunk>
gt repo remote
--set <origin>
gt repo pr-templates
log
gt log
commands can also be accessed by the shortcut gt l
.gt log
gt log short
gt log long
-t
--on-trunk
-b
--behind-trunk
user
gt user branch-prefix
branch-prefix
. Graphite will prepend this prefix to all auto-generated branch names (i.e. when you don't specify a branch name when calling gt branch create
).--set <branch-prefix>
branch-prefix
(string).gt user tips
--enable
--disable
gt user experimental
--enable
--disable
gt user editor
--set <editor>
gt user editor --set vim
.--unset
feedback
gt feedback
--with-debug-context
gt feedback state
to see what's included.auth
gt auth
--token