GitHub - error: failed to push some refs to 'git@github.com:myrepo.git'

前端 未结 10 2101
滥情空心
滥情空心 2020-12-23 14:21

I am getting the following error. How do I resolve?: git add . git commit -m \'t\' git push origin development

To git@github.com:myrepo.git
 ! [         


        
10条回答
  •  执笔经年
    2020-12-23 14:38

    In my case git push was trying to push more that just the current branch, therefore, I got this error since the other branches were not in sync.

    To fix that you could use: git config --global push.default simple That will make git to only push the current branch.

    This will only work on more recent versions of git. i.e.: won't work on 1.7.9.5

提交回复
热议问题