Dec 20, 2013

Upgrade (and keep synced with system update) git version on ubuntu 12.04

My git version was 1.7.9.5, while the latest version is 1.8.5.2, wanted to upgrade it to use the --diff-dir option available from version 1.7.11.

Tried the way of download source code and build locally (https://www.digitalocean.com/community/articles/how-to-install-git-on-ubuntu-12-04), not working for me.

Finally, found this page:

and steps are:

1. add git ppa
$sudo add-apt-repository ppa:git-core/ppa
2. update
$sudo apt-get update
3. upgrade git
$sudo apt-get install git

Check version with command
$git --version
git version 1.8.5.2

Yeah~

No comments:

Post a Comment