I am lacking some fundamental understanding here. ...
# how-do-i
e
I am lacking some fundamental understanding here. Lets have 2 devs. A and B, on two machines. A sets up a stack, then, goes
gt submit --stack
I would expect this stack is stored on app.graphite.com somehow.. I can see it there. B then does gt sync. B has the same branches, but has not explicitlly stacked them. I would expect that B’s stack now shows the branches as stacked.. I mean, if stacks are updated, everyone with that stack needs to be updated.. What am I missing??
✅ 1
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
Hey Ed!
gt sync
only updates branches that are already tracked by gt on the local machine. ie doesn't automatically adopt branches from remote just because they exist as a stack on Graphite's server. So for Dev B's scenario: 1. If B already has the branches tracked in gt (e.g., B previously ran
gt track
or
gt get
to pull them, then
gt sync
will pull down the latest remote state. 2. If B just has the raw git branches (fetched via
git fetch
/
git pull
but never tracked in local gt) — then gt doesn't know about them yet. B would need to run
gt track
to tell gt "hey, these branches are part of a stack" before
gt sync
will manage them. Alternatively,
gt get <branch-name>
would fetch and track a specific branch (and its stack) from remote.