top | item 46159639

(no title)

jbjbjbjb | 2 months ago

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

discuss

order

lelandfe|2 months ago

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/

YmiYugy|2 months ago

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

enbugger|2 months ago

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

sirsuki|2 months ago

You don’t really need docs as --update-refs does what the OP does automatically instead of manually like the OP does.