将分支推送到远程存储库时遇到错误: rejected Updates were rejected because the remote contains work that you do not have locally

在仓库目录下执行

 

git pull origin master --allow-unrelated-histories

 

之后就可以成功的pull,push了

posted @   鸡毛巾  阅读(7232)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示