1. 添加git源
$ sudo add-apt-repository ppa:git-core/ppa
2. 更新软件列表
$ sudo apt-get update
3. 安装git
$ sudo apt-get install git
这时候再安装就可以发现git版本跟官网最新版是一致的了。
本文介绍了一种在Linux系统上安装最新版本Git的方法。通过添加官方PPA源、更新软件列表和安装Git三个步骤,可以确保所安装的Git版本与官网最新版一致。
1. 添加git源
$ sudo add-apt-repository ppa:git-core/ppa
2. 更新软件列表
$ sudo apt-get update
3. 安装git
$ sudo apt-get install git
这时候再安装就可以发现git版本跟官网最新版是一致的了。
2690
2293

被折叠的 条评论
为什么被折叠?