logoalt Hacker News

nopurposetoday at 11:15 AM5 repliesview on HN

That particular case can be solved much easier by rebasing outer-most branch with `--update-refs` flag.


Replies

happytoexplaintoday at 12:24 PM

I came into the comments specifically to ask if this flag existed. I feel bad that the author developed this whole flow just because they didn't know about this, but that's pretty common with git.

show 1 reply
onionisafruittoday at 2:24 PM

Thanks. This is going to be so useful, but it pains me to know I could have been using —update-refs for the last three years.

I used to dutifully read release notes for every git release, but stopped at some point. Apparently that point was more than three years ago.

show 1 reply
ananthakumarantoday at 3:17 PM

Exactly, I was reading the blog and wondering the whole time how it's better than --update-refs, which I have been using a lot recently.

imrontoday at 11:58 AM

Yep. I set this in .gitconfig

duskdozertoday at 12:45 PM

I'm guilty lol. I wrote a helper to do rebase chains like this

show 1 reply