sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
除了安全方面的原因外,Git 在版本升级过程中持续引入了各种性能优化,比如更快的 git status,对于 powerline-shell 这样的使用场景就会很有帮助。
|  |      1Hilong      2017-08-22 09:38:09 +08:00 via Android 这是 git 测试版本的 ppa 源吗? | 
|  |      2forcecharlie      2017-08-22 10:17:02 +08:00 | 
|      3sylecn      2017-08-22 10:17:53 +08:00 via Android debian 不能用 Ubuntu 的 ppa 吧 | 
|      4hwding      2017-08-22 10:22:32 +08:00 果然加了 PPA 以后就有更新了,不知道是否稳定。 我已经被激进的 openGL 源坑过一波,到现在 steam 都闪退 :( 。 | 
|  |      5msg7086      2017-08-22 10:32:56 +08:00 Debian 用户还是用 testing 的稳妥些。 https://packages.debian.org/buster/git git (1:2.14.1-1) vs ppa:git-core/ppa (1:2.14.1-1.1~ppa0~ubuntu16.04.1) |