$ sudo add-apt-repository ppa:git-core/ppa $ sudo apt-get update $ sudo apt-get install git
参考: https://www.cnblogs.com/shaobin0604/p/5987633.html