Installing Latest version of git in ubuntu

后端 未结 5 1338
傲寒
傲寒 2020-12-12 09:49

My Current git version 1.7.9.5...

I need to upgrade to at least git 1.7.10 to have git clone command to work properly

I tried sudo add-apt

5条回答
  •  执念已碎
    2020-12-12 10:01

    The Ubuntu git maintainers team has a PPA just for that

    ppa:git-core/ppa
    

    Just do:

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

    If add-apt-repository command is not found, install it first with

    sudo apt-get install software-properties-common python-software-properties
    

提交回复
热议问题