Unknown option `allow-unrelated-historyories'

I have two repositories: Market and Android. When I combine Android for the market, follow these steps:

cd market git remote add android ../android git fetch android git merge --allow-unrelated-histories android/master 

But I get this error:

ei @localhost: ~ / market $ git merge --allow-unrelated-history android / master error: unknown option `allow-unrelated-historyories

My surroundings: Ubuntu LTS 14.04

 ei@localhost :~/market$ git --version git version 1.9.1 

Is this option removed from git merge, or do I need additional configuration?

Any help would be appreciated, thanks!

+7
source share
1 answer

I previously documented how this option was introduced in Git 2.9, June 2016 (as mentioned by merlin2011 in the comments )

Since Ubuntu LTS 14.04 has the old 1.9+ Git installed, you need to reference the updated ppa :

 sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt install git 

This ppa (package for personal archive) is git-core/+archive/ubuntu/ppa and will include the latest version of Git 2.11.

+15
source

Source: https://habr.com/ru/post/1246302/


All Articles