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.
解决方法
在同步选项下打开命令提示符

在命令行中输入:
git pull origin master --allow-unrelated-histories

本文介绍了解决在使用Git向远程存储库推送代码时遇到的特定错误的方法。当本地分支落后于远程分支时,推送可能会被拒绝。文章提供了一个命令来整合远程更改,以便能够成功推送。
613

被折叠的 条评论
为什么被折叠?



