初次连接远程仓库进行push或pull时就会出现这种错误 **解决办法:**在命令后面加上–allow-unrelated-histories $ git pull --allow-unrelated-histories