解决 git pull 报错 fatal: refusing to merge unrelated histories
生活随笔
收集整理的這篇文章主要介紹了
解决 git pull 报错 fatal: refusing to merge unrelated histories
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
我在Github新建一個倉庫,寫了License,然后把本地一個寫了很久倉庫上傳。
先pull,因為兩個倉庫不同,發(fā)現(xiàn)refusing to merge unrelated histories,無法pull
因為他們是兩個不同的項目,要把兩個不同的項目合并,git需要添加一句代碼,在git pull,
這句代碼是在git 2.9.2版本發(fā)生的,最新的版本需要添加--allow-unrelated-histories
git pull origin master --allow-unrelated-histories?
轉(zhuǎn)載于:https://www.cnblogs.com/arvin-an/p/9728443.html
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的解决 git pull 报错 fatal: refusing to merge unrelated histories的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql事务的 四个特征(ACID)
- 下一篇: BD和DBMS和SQL概念