sudo add-apt-repository ppa:git-core/ppasudo apt-get updatesudo apt-get install git
Ubuntu 升级 git 自带版本很低
原文:https://blog.51cto.com/aurogon/2475153