Ubuntu中使用包管理安裝Git,版本爲1.8,因此不能直接進行安裝。python
- sudo add-apt-repository ppa:git-core/ppa(若是提示未找到此命令,安裝apt-get install software-properties-common[python-software-properties])
- apt-get update
- sudo apt-get install git-core
PS:PPA(Personal Package Archive site:https://launchpad.net ->https://launchpad.net/~git-core/+archive/ubuntu/ppa)git