1. 程式人生 > >Meth | 如何去解決fatal: refusing to merge unrelated histories

Meth | 如何去解決fatal: refusing to merge unrelated histories

博文 倉庫 原創 fat 合並 tails detail 最新 學習

先pull,因為兩個倉庫不同,發現refusing to merge unrelated histories,無法pull


因為他們是兩個不同的項目,要把兩個不同的項目合並,git需要添加一句代碼,在git pull,
這句代碼是在git 2.9.2版本發生的,最新的版本需要添加--allow-unrelated-histories
git pull origin master --allow-unrelated-histories
---------------------
作者:學習中呢
來源:CSDN
原文:https://blog.csdn.net/m0_37402140/article/details/72801372
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!

Meth | 如何去解決fatal: refusing to merge unrelated histories