会出现这个问题的两个原因: 1、合并分支 2、push或pull操作
解决:在对应的命令后加上 --allow-unrelated-histories
参考博客:https://developer.aliyun.com/article/614459