Upgrading git from the source repository in Ubuntu

I want to upgrade git using the source repository in Ubuntu. As you note, the last stable version is the 2.0.2, but I have the 1.9.4.

I cloned the git repo, but I’m not sure how to continue.

  • error: The following untracked working tree files would be overwritten by merge: .gitignore
  • GIT Split Repository directory preserving *move / renames* history
  • git: fatal: I don't handle protocol '​​http'
  • How do I squash two non-consecutive commits?
  • How to pass file to downstream job which blocks upstream job?
  • Puppet agent not able download code from Git
  • I want to do that in some way I can understand how to interact with the branches and tags of the repo, so I am not searching solutions of this type

    Please help!

  • Cloning git repository from svn repository, results in file-less, remote-branch-less git repo
  • GIT: how to force a merge commit to an ancestor
  • git merge ambiguous while merging two branches
  • Netbeans 7.3: Error connecting to Git repository with SSH
  • Git push is not 'pushing' a new branch
  • Gem is not checked out. Please run `bundle install` in Heroku
  • One Solution collect form web for “Upgrading git from the source repository in Ubuntu”

    2.0.2 has been uploaded 3 days ago in this PPA: https://launchpad.net/~git-core/+archive/ubuntu/ppa

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

    But if this isn’t what you want, and you have clone the git repo, then

    sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev bzip2
    cd /path/to/local/clone/of/git
    sudo make install
    Git Baby is a git and github fan, let's start git clone.