将分支推送到远程存储库时遇到错误: rejected Updates were rejected because the remote contains work that you do not have locally
在仓库目录下执行
git pull origin master --allow-unrelated-histories
之后就可以成功的pull,push了
本文解决在将分支推送到远程存储库时遇到的错误:remotecontainsworkthatyoudonothavelocally。通过执行gitpulloriginmaster--allow-unrelated-histories,成功实现pull和push操作。
在仓库目录下执行
git pull origin master --allow-unrelated-histories
之后就可以成功的pull,push了
1628
2万+
4809
1072
855
7万+

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