在Ubuntu上安装Git:

sudo apt-get install git-core

参考http://evgeny-goldin.com/blog/3-ways-install-git-linux-ubuntu/