Git: Merge a Remote branch locally

后端 未结 5 882
小蘑菇
小蘑菇 2020-12-02 03:58

I\'ve pulled all remote branches via git fetch --all. I can see the branch I\'d like to merge via git branch -a as remotes/origin/branchname. Probl

5条回答
  •  难免孤独
    2020-12-02 04:26

    Whenever I do a merge, I get into the branch I want to merge into (e.g. "git checkout branch-i-am-working-in") and then do the following:

    git merge origin/branch-i-want-to-merge-from

提交回复
热议问题