Git 1.8: it push error: dst ref refs/heads/master receives from more than one src

后端 未结 5 1658
野趣味
野趣味 2021-02-18 17:43

Another issue with git 1.8:

$ git push
error: dst ref refs/heads/master receives from more than one src.
error: failed to push some refs to \'gitosis@xxx.xx:xxx.         


        
5条回答
  •  长发绾君心
    2021-02-18 17:56

    Another way to get this error is if you accidentally type in the name of the branch you are trying to push twice, i.e.:

    git push master otherBranch master moreBranches
    

    Yields this error. Fix is obvious once you're aware you've done it:

    git push master otherBranch moreBranches
    

提交回复
热议问题