fatal: refusing to merge unrelated histories

fatal: refusing to merge unrelated histories

在 pull 的时候出现了这个错误,说的是远程分支和当前分支没有建立联系,

在命令后面加 --allow-unrelated-histories 就行

比如说

git pull origin master --allow-unrelated-histories
原文地址:https://www.cnblogs.com/consolexinhun/p/15358039.html