Running Ubuntu with the latest version of Git

In the process of setting up the VPS that hosts this blog, I noticed the latest version of Git available from the Ubuntu repositories was 1.9.1, despite the current version available on the official Git website being 2.4.6. Usually, I don't mind trailing a little behind the latest releases, but versions 2.0.0+ of Git have some pretty nifty features I figured were worth trying out - though none seem game changing for my workflow. Below are the steps I took to add the official Git repository to my server, and install the latest version (2.9.0):

sudo add-apt-repository ppa:git-core/ppa -y  
sudo apt-get update  
sudo apt-get install git  
git --version  

Note that add-apt-repository is installed via:

sudo apt-get install python-software-properties software-properties-common  

Nothing too complicated, but I figured it was worth sharing for fellow Ubuntu + Git users interested in having the latest and greatest version of this amazing version control tool!

comments powered by Disqus