Installing Latest version of git in ubuntu

后端 未结 5 1339
傲寒
傲寒 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:08

    The question was: "What to do when sudo add-apt-repository ppa:git-core/ppa command fails".

    I had the same issue in a VM behind a proxy. I resolved it with the following two steps:

    1. Set up proxy environment variables

      export http_proxy=http://:@:
      export https_proxy=http://:@:
      
    2. Run the add-apt-repository command again as sudo with the -E option that preserves the user environment:

      sudo -E add-apt-repository ppa:git-core/ppa
      

提交回复
热议问题