logoalt Hacker News

mhwtoday at 2:17 PM1 replyview on HN

Yeah, you need to rebase the tip of the feature branch stack. git will then update all the refs that point to ancestor commits that are moved. So in this case

    $ git rebase --update-refs main feature-2

Replies

ptxtoday at 2:43 PM

Thanks! Yup, that does the trick.