git pull on a different branch

后端 未结 4 1650
耶瑟儿~
耶瑟儿~ 2021-02-01 01:37

If I\'m working on a branch and then realize I need to merge another branch into mine here is my current workflow (for this example lets say that I\'m working on my-branch and w

4条回答
  •  星月不相逢
    2021-02-01 02:24

    You could also try this:

    git fetch
    git merge origin/master
    

    This won't update your local master pointer, but it will merge the latest origin/master into your current local branch.

提交回复
热议问题