原文地址: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.

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

 

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

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

git pull --rebase origin master

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

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

git push -u origin master

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

 

相关文章:

  • 2021-07-05
  • 2021-11-11
  • 2021-09-18
  • 2022-01-04
猜你喜欢
  • 2021-07-10
  • 2021-05-23
  • 2021-05-01
  • 2021-11-11
  • 2021-07-07
相关资源
相似解决方案