I have a stack of 6 PRs. I manually closed PR numb...
# how-do-i
j
I have a stack of 6 PRs. I manually closed PR number 4 on Github because it contained changes we didn't want. Now PR 5 and 6 are somehow based off of main and no longer in sync with my stack. I suspect this happend because of my manually closing the PR and then doing more work locally on my upstream branches without running
gt sync
. I noticed my that the first of my "lost" branches had it's target branch on my open PR set as
graphite/<number>
which I don't think was correct. I tried manually changing it with the GUI on github to my expected target (PR 3, since 4 was closed manually), and then running
gt sync
, but still it does not track accordingly to what I desire.
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 Johan! Could you try: • Running gt untrack on PR 5. That will also untrack its child branches. • Running gt track on PR 6. This will recursively track a stack of branches by specifying each branch’s parent interactively. This command can also be used to fix corrupted Graphite metadata.
j
Thanks Connor. I ended up using
gt move
before trying your suggestions and that seemed to work. I managed to move the base branch of a stack to be in the middle of another stack.