gt downstack get
allows you to pull your coworker's stacks from remote into your local repository.my_branch
depends on (starting from the bottom of the stack). If any of the branches already exist locally and differ from the remote version, Graphite will ask to either overwrite your local changes, or rebase them on top of the remote version.gt downstack get
is also the recommended workflow for developers who work on more than one machine — submit draft PRs for your stack on one machine with gt stack submit
and use then use downstack get
from the other device!gt
to ensure that the dependencies are managed and synced correctly as you work together.gt
can be synced down to your local, as we rely on the Graphite submission to keep track of the dependency tree.git pull
and gt branch track
.submit
prefers that your branches are restacked, but only the branches that you are submitting need to be restacked. This means that if you are working on some branches stacked on top of an old version of a coworkers branch, and you'd prefer not to mess with their changes, including rebasing them, you can use gt upstack restack
on your own changes and gt upstack submit
to submit them without restacking (and therefore changing) your coworker's branch. Once your coworker lands their changes, you can repo sync
and restack your branches on the new version of main
!