logoalt Hacker News

jbjbjbjbtoday at 10:59 AM4 repliesview on HN

I think ‘git rebase —-update-refs’ is the better way to go for this scenario


Replies

lelandfetoday at 1:06 PM

Sweet, looks like this is pretty new (2022).

Running a git command on one branch and multiple branches being affected is really unusual for me! This really does look like it is designed for just this problem, though. Simple overview: https://blog.hot-coffee.dev/en/blog/git_update_refs/

YmiYugytoday at 1:42 PM

It breaks if you amend the top commit instead of adding a new one.

enbuggertoday at 11:47 AM

Is there any good guide on how to solve the issue which OP solves?

show 2 replies