unknown option `allow-unrelated-histories'

后端 未结 1 1546
日久生厌
日久生厌 2020-11-27 07:51

I have two repos: Market and Android. When I merge Android to Market use these steps:

cd market
git remote add android ../android
git fetch android
git merge         


        
相关标签:
1条回答
  • 2020-11-27 08:32

    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:

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

    That ppa (Personnal Archive Package) is the git-core/+archive/ubuntu/ppa, and will include the latest Git 2.11 release.

    0 讨论(0)
提交回复
热议问题