How to resolve git's “not something we can merge” error

前端 未结 25 1124
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 05:42

I just encountered a problem when merging a branch into master in git. First, I got the branch name by running git ls-remote. Let\'s call that branch \"branch-n

相关标签:
25条回答
  • 2020-12-04 06:44

    You are getting this error because the branch you want to merge doesn't exist on your local repository.

    So, first checkout the brach you want to merge into master branch by the following command:

    git checkout branch_name_to_merge
    

    After this try to merge it with master branch by the following command:

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