merge branch that was created from old commit to master

前端 未结 1 715
离开以前
离开以前 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 ). 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)
提交回复
热议问题