今天敲代码了吗?   

GitHub上传项目时——解决failed to push some refs to git

原文地址:https://jingyan.baidu.com/article/f3e34a12a25bc8f5ea65354a.html

 

遇到的问题:

error: failed to push some refs to 'xxxxxxxx‘’

hint: Updates were rejected because the tip of your current branch is behin

hint: its remote counterpart. Integrate the remote changes (e.g.

hint: 'git pull ...') before pushing again.

hint: See the 'Note about fast-forwards' in 'git push --help' for details.

 

尝试了一种方法后仍然有问题于是百度出另一种方法:

 1.可以通过如下命令进行代码合并

git pull --rebase origin master

2.此时再执行语句即可完成代码上传到github

git push -u origin master

 

posted on 2019-04-16 11:11  今天学算法了吗?  阅读(1574)  评论(0编辑  收藏  举报

导航