未知选项`allow-unrelated-history' [英] unknown option `allow-unrelated-histories'
问题描述
cd market
git remote add android ../android
git fetch android
git merge --allow-unrelated-history android / master
但是我得到这个错误:
lockquote
ei @ localhost:〜/ market $ git merge --allow-unrelated-history
android / master错误:未知选项`allow-unrelated-history'
我的环境:Ubuntu LTS 14.04
ei @ localhost:〜/ market $ git --version
git版本1.9.1
这个选项是从Git合并中删除的,还是我需要一些额外的配置?
谢谢!
我之前记录了如何在 Git 2.9,2016年6月(如 merlin2011 在评论)
由于Ubuntu LTS 14.04自带旧1.9+ Git,因此需要引用最新的ppa :
sudo add-apt-repository ppa:git-core / ppa
sudo apt-get update
sudo apt install git
ppa(个人档案包)是 p> I have two repos: Market and Android. When I merge Android to Market use these steps: But I get this error: ei@localhost:~/market$ git merge --allow-unrelated-histories
android/master error: unknown option `allow-unrelated-histories' My enviroment: Ubuntu LTS 14.04 Is this option removed from Git merge, or do I need some extra config? Any help would be appreciated, thanks! I documented before how that option has been introduced in Git 2.9, June 2016 (as mentioned by merlin2011 in the comments) Since Ubuntu LTS 14.04 comes with an old 1.9+ Git, you need to reference an up-to-date ppa: That ppa (Personnal Archive Package) is the 这篇关于未知选项`allow-unrelated-history'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!cd market
git remote add android ../android
git fetch android
git merge --allow-unrelated-histories android/master
ei@localhost:~/market$ git --version
git version 1.9.1
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt install git
git-core/+archive/ubuntu/ppa
, and will include the latest Git 2.11 release.