This message was deleted.
# report-bugs
s
This message was deleted.
1
a
There’s likely a conflict on the upstack branch with what’s on main/downstack after rebase. Does fixing the conflict get you into a bad state?
b
Disregard — looks like
gt upstack submit
did the trick. Thanks!
a
I’d just double check that your state is correct via gt ls and no rebasing is required.
b
Yup looks good
Although the problem you expected is probably what I’ve worked through for the past hour— resetting all changes from the upstack branch to make this a clean restack on master
a
Is that the order you expect? Based on your msg above it seems like skin* and new* are related?
b
No, unrelated. I was moving skin* away from new*
They were connected, but I disconnected them intentionally
a
Next time you can do gt upstack onto <child> <new parent>
And then fix conflicts as they arise
b
That’s what I did earlier when I started this process, which became like 20 rounds of rebase conflicts
a
sorry gt upstack onto <parent> while child is checked out
b
…gt ls and no rebasing is required
Is there a proper way to do that? Another member on my team merged his downstack branch, then did a rebase/restack from his next branch up in the stack, and then resulted in quite the mess
@Sean Lynch ☝🏼 is this the process you followed. Wondering if there are any takeaways from this discussion we can try next time
a
Not sure I fully grasp what happened. But you could do gt repo sync -r, which will then rebase non merged branches onto main. If you want to share the sequence of things that happened I can provide better advice
b
Yeah, I’m not sure we used the
-r
flag there. Does that make all the difference?
@Sean Lynch Have you tried this, by chance? 👇🏼
Copy code
gt repo sync -r
j
repo sync -r
is the same as running a restack command after syncing. if you’re running into having to address the same conflicts over and over again while rebasing, it may be simply due to the number of commits in the branch that had to be rewritten during the rebase…
git rerere
might be helpful for cases like this depending on the nature of the conflicts.
b
Thanks!