zlacker

[return to "Stacked Diffs with git rebase —onto"]
1. jbjbjb+kAe[view] [source] 2025-12-05 10:59:07
>>flexdi+(OP)
I think ‘git rebase —-update-refs’ is the better way to go for this scenario
◧◩
2. enbugg+mGe[view] [source] 2025-12-05 11:47:26
>>jbjbjb+kAe
Is there any good guide on how to solve the issue which OP solves?
◧◩◪
3. jbjbjb+BZe[view] [source] 2025-12-05 13:47:41
>>enbugg+mGe
I was reading this the other day when I came across this feature because I’m stacking PRs recently which I don’t usually do

https://andrewlock.net/working-with-stacked-branches-in-git-...

Another commenter posted this link which was a bit more succinct

https://blog.hot-coffee.dev/en/blog/git_update_refs/

There isn’t much to it though, you just go to the branch and run git rebase with the update refs flag.

[go to top]