reprint from:http://www.360doc.com/content/12/0228/13/5962017_190255288.shtml
If you use Git a lot, you probably want to run the latest version.
The standard repository version for Ubuntu is 1.7.1, the current latest is 1.7.5 and there are some significant differences.How to Upgrade GitTo get 1.7.5 on Ubuntu without too much messing about you can do the following:1. Set up this PPA: sudo add-apt-repository ppa:pdoes/ppa/ubuntu2. Now run an aptitude update and upgrade git sudo apt-get update sudo aptitude upgrade git3. Now check your git version git --versionFull Script for the lazy sudo add-apt-repository ppa:pdoes/ppa/ubuntu && sudo apt-get update && sudo aptitude upgrade && git --version