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

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

    Your origin repository is ahead of your local repository. You'll need to pull down changes from the origin repository as follows before you can push. This can be executed between your commit and push.

    git pull origin development
    

    development refers to the branch you want to pull from. If you want to pull from master branch then type this one.

    git pull origin master
    

提交回复
热议问题