Installing Latest version of git in ubuntu

My Current git version…

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

  • JavaScript dependency management without NodeJS
  • Push git submodule changes to my own repo
  • Can't run wave engine app in my visualstudio
  • Merge disjoint branches with git
  • Git Mirroring Issue
  • git error “Please tell me who you are.” and Heroku
  • I tried sudo add-apt-repository ppa:git-core/ppa for upgrading but resulted in this :

    Traceback (most recent call last):
      File "/usr/bin/add-apt-repository", line 125, in <module>
        ppa_info = get_ppa_info_from_lp(user, ppa_name)
      File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 80, in get_ppa_info_from_lp
    pycurl.error: (7, "couldn't connect to host")

    What am I supposed to do to get the latest git installed (to upgrade)?

  • How to get first and last commit from git from a user
  • how to clone ssh remote repository using jgit and apache ant task?
  • Docker: Give container user write access to host directory
  • Why does `git rebase` apply all of the commits rather than just applying the last one?
  • How can I make git-svn get rid of remote branches that don't exist anymore?
  • “git pull” or “git merge” between master and development branches
  • 2 Solutions collect form web for “Installing Latest version of git in ubuntu”

    The Ubuntu git maintainers team has a PPA just for that


    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 python-software-properties

    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://<user>:<pwd>@<proxy_url>:<port_number>
      export https_proxy=http://<user>:<pwd>@<proxy_url>:<port_number>
    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
    Git Baby is a git and github fan, let's start git clone.