how do I use the CLI to auto track all outstanding...
# how-do-i
r
how do I use the CLI to auto track all outstanding PRs on top of my current stack that aren't written by me? as in someone created a stack on top of mine and I wouldn't know that someone stacked on top of it without them telling me or checking in the GUI. git fetch pulls the branches but doesn't track in them in graphite
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
I don't believe there's a way to do this automatically (but I'm double-checking on that). For individual branches:
gt track
- Track a branch created outside of Graphite
gt track
<branch_name>
- Track a specific existing branch For multiple branches:
gt track --force
- When run from the tip of a stack, automatically tracks multiple branches in a row, choosing the nearest ancestor as parent
r
I think I may have used the wrong terminology - I'm talking about branches tracked by graphite, but someone else did the tracking so I don't know about it locally. Is
gt track
for connecting branches not tracked by graphite? Does that make sense?
p
Ah! You should be able to use
gt get
. There more info here!
r
Right - but I would need to know the name of my coworker's branch and they would have to tell me they pushed it to use
gt get
correct? is there any way I can just pull down the head on my stack without knowing what it is?
p
Not at the moment, I'm afraid. We're working on improvements for this!
r
sounds good - thank you!