Git: rebase onto development branch from upstream

前端 未结 3 909
日久生厌
日久生厌 2021-02-05 22:08

I have local master and develop branches. I do all my work on develop and then merge them into master for releases. There is

3条回答
  •  情深已故
    2021-02-05 22:17

    The rebase would actually be:

    git checkout develop
    git rebase upstream/master
    

    (git rebase should read: "rebase my current branch, here develop, on top of target branch, here upstream/master")

    And the end result wouldn't be a detached head, but the newly rewritten develop branch.

提交回复
热议问题