未知选项“允许无关的历史”
unknown option `allow-unrelated-histories'
我有两个回购协议:Market 和 Android。当我将 Android 合并到市场时,请使用以下步骤:
cd market
git remote add android ../android
git fetch android
git merge --allow-unrelated-histories android/master
但是我得到这个错误:
ei@localhost:~/market$ git merge --allow-unrelated-histories
android/master error: unknown option `allow-unrelated-histories'
我的环境:Ubuntu LTS 14.04
ei@localhost:~/market$ git --version
git version 1.9.1
此选项是否已从 Git 合并中删除,或者我需要一些额外的配置?
任何帮助将不胜感激,谢谢!
我在 Git 2.9, June 2016 (as mentioned by merlin2011 in )
中记录了如何引入该选项
由于 Ubuntu LTS 14.04 带有旧的 1.9+ Git,you need to reference an up-to-date ppa:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt install git
即 ppa (Personnal Archive Package) is the git-core/+archive/ubuntu/ppa
,并将包括最新的 Git 2.11 版本。
我有两个回购协议:Market 和 Android。当我将 Android 合并到市场时,请使用以下步骤:
cd market
git remote add android ../android
git fetch android
git merge --allow-unrelated-histories android/master
但是我得到这个错误:
ei@localhost:~/market$ git merge --allow-unrelated-histories android/master error: unknown option `allow-unrelated-histories'
我的环境:Ubuntu LTS 14.04
ei@localhost:~/market$ git --version
git version 1.9.1
此选项是否已从 Git 合并中删除,或者我需要一些额外的配置?
任何帮助将不胜感激,谢谢!
我在 Git 2.9, June 2016 (as mentioned by merlin2011 in
由于 Ubuntu LTS 14.04 带有旧的 1.9+ Git,you need to reference an up-to-date ppa:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt install git
即 ppa (Personnal Archive Package) is the git-core/+archive/ubuntu/ppa
,并将包括最新的 Git 2.11 版本。