git 报错

将分支推送到远程存储库时遇到错误: 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 @ 2018-09-06 10:46  富坚老贼  阅读(168)  评论(0编辑  收藏  举报