原因 本地库与远程库的两个分支是两个不同的版本,具有不同的提交历史 git pull或者git push会报错 办法 git pull origin master --allow-unrelated-histories