报错详情 报错原因 两个分支是两个不同的版本,具有不同的提交历史 解决办法 $git pull origin master --allow-unrelated-histories 报错详情 报错原因 远程master有未pull下来的代码 解决办法 git pull origin master