merge branch that was created from old commit to master

前端 未结 1 740
离开以前
离开以前 2021-01-22 20:52

I created a new branch from old master-commit. When trying to merge it with master using

git checkout master
git merge newbranch

I am getting

相关标签:
1条回答
  • 2021-01-22 21:09

    You need to go back to the master branch (git checkout master) and then merge in your new branch (git merge <newbranch>). That will pull over the changes from that branch into your master branch.

    Read more here: http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging

    0 讨论(0)
提交回复
热议问题