On , I learned ...
How to use graphite to manage stacks of PRs better
Graphite is a tool to help manage stacked PRs. It promotes the creation of small, review-able PRs. It also promotes a specific style of git commands which can be useful.
For example, because the focus is on small PRs, the expectation is one branch,
one PR, one commit. That is, instead of a bunch of commits all on one branch
that you are probably going to “squash and merge” anyway, use gt modify
(same
as git commit -a --amend --no-edit
) to keep a single commit.
The other pro-tip for using Graphite is to use gt ss
which is an alias for
gt submit --stack
to update fully up and down the stack of PRs based on your
most recent commit.