origin/main
) gets ahead of your local repository while you're developing, you can use gt repo sync
to bring your stack up-to-date.gt repo sync
does 3 things:origin/main
(or whatever your trunk branch is)gt repo sync
, you can pass the -r
flag, i.e. gt repo sync -r
.gt repo sync
works just like it does for gt commit create
or gt commit amend
.gt repo sync
encounters any conflicts as it recursively rebases your stacked branches, you'll be prompted to resolve your conflicts before continuing. You can do this with the following workflow: