Why I cannot push my code to github?

后端 未结 2 669
忘了有多久
忘了有多久 2021-01-15 18:37
$git push origin master
To git@github.com:dimitar9/first_app.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to \'git         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-15 19:34

    This means that there are some changes on GitHub which have not been merged into your current branch. To resolve this, do what the error message is telling you to: git pull, resolve any conflicts, then try pushing again.

提交回复
热议问题