Friday, June 20, 2014

Ubuntu - Update Git

OS: Ubuntu 12.04

To update your git to the leatest version (2.0.0) without rebuilding, you can use the Launchpad PPA repository ( Lunchpad is a software collcaboration platform that provides:

  • Bug tracking
  • Code hosting using Bazaar
  • Code reviews
  • Ubuntu package building and hosting
  • Translations
  • Mailing lists
  • Answer tracking and FAQs
  • Specification tracking

Lunchpad has the most current stable version of Git for Ubuntu.

To add Lunchpad git ppa:
# git --version
git version
# add-apt-repository ppa:git-core/ppa
# apt-get update
# apt-get install git
# git --version
git version 2.0.0

Of course you can build the newest version:
# Download git-core from
# tar -zxf git-1.9.0.tar.gz
# cd git-1.9.0
# make prefix=/usr/local all
# sudo make prefix=/usr/local install

No comments: