fatal: refusing to merge unrelated histories

fatal: refusing to merge unrelated histories

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

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

比如说

git pull origin master --allow-unrelated-histories
posted @ 2021-09-30 20:17  consolexinhun  阅读(38)  评论(0编辑  收藏  举报