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

前端 未结 10 2098
滥情空心
滥情空心 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:42

    In my case. I had the error because I forgot to make a commit after create a repository on github into an existing project. So I solved:

    git add .
    git commit -m"commentary"
    

    Then I was able to type:

    git push -u origin master
    

提交回复
热议问题