origin/main) gets ahead of your local repository while you're developing, you can use
gt repo syncto bring your stack up-to-date.
gt repo syncdoes a few things:
origin/main(or whatever your trunk branch is)
main. If you encounter any merge conflicts, you'll be prompted to resolve them as part of the restack — see the section on restacking for more details!
gt log, we see that
part_2is now based on
synccommand here (we could have done so with
--restack), we see that
part_2needs a restack onto
main. We'll talk about what that means in the next section: Restacking branches.