Learn how to create stacked branches with the Graphite CLI.
gt
in a repo of your choice
git
workflow, creating a branch and staging/committing changes shouldn’t be new to you. While using a git
-style workflow to create branches in Graphite still works, we strongly recommend that you follow the Graphite workflow when creating and editing branches:
gt add -a
to stage all of your files, or gt add <FILENAME>
to stage individual files
gt create ...
git
workflow, you would instead break up into multiple branches in Graphite (typically with one commit on each branch).
gt create
:
gt create
, you can decide whether to pass in a branch name. A branch name is auto-generated from your commit message if a branch name isn’t provided.
You can configure a prefix for gt create
to add to all of your auto-generated branch names. See Configure the CLI for more details.
gt create
commands as you work.
gt split
command. Learn more about splitting a branch.