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

将分支推送到远程存储库时遇到错误: 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 @ 2019-08-23 15:22  土伦  阅读(291)  评论(0编辑  收藏