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

前端 未结 25 1253
隐瞒了意图╮
隐瞒了意图╮ 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:41

    I had the same problem. I fixed it using the command below:

    git checkout main
    git fetch
    git checkout branch_name
    git fetch
    git checkout main
    git fetch
    git merge branch_name
    

提交回复
热议问题