参考地址:http://lifeonubuntu.com/upgrading-ubuntu-to-use-the-latest-git-version/
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
git --version