Learn how to get started with Graphite to create and manage PRs and visualize and review changes. Master Graphite’s PR workflow in 6 simple steps.
gt sync
, read more below) is essentially a git pull
that does some extra work under the hood to manage your dependencies, cleans up your local state, and more.
gt log
or gt log short
. Here’s how you can interpret the output:
main
branch checked out. After that, create some changes and run:
Note: the--all
tag automatically stages all unstaged changes when creating a branch. You can drop this flag if you’d prefer to stage your changes manually — see all of the flags supported bygt create
in the CLI command reference.
Note: By default,gt modify
amends the last commit on the branch. To create a new commit, usegt modify --commit
. See more flags formodify
in the CLI command reference.
app.graphite.dev...
links outputted by the CLI, navigate to the top of the stack (in this case, the dropdown next to the PR should say 3 of 3
), and click the Merge 3 PRs
button.
main
(or whatever your base branch is), run:
main
’s latest changes. In addition to fetching updates, sync:
gt sync
throughout your workflow.