当前位置:   article > 正文

VS git 出现错误: rejected Updates were rejected because the tip of your current branch is behind_发布到远程存储库时遇到错误: rejected updates were rejected beca

发布到远程存储库时遇到错误: rejected updates were rejected because the tip o

Q1:发布到远程存储库时遇到错误: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes before pushing again.

正在推送 master
Error: failed to push some refs to 'https://github.com/dogdng/xxxxxxxxx.git'
Error: hint: Updates were rejected because the tip of your current branch is behind
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.

发布到远程存储库时遇到错误: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes  before pushing again.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

解决方法

同步选项下打开命令提示符
在这里插入图片描述
在命令行中输入:

git pull origin master --allow-unrelated-histories
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/497693
推荐阅读
相关标签
  

闽ICP备14008679号