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