---恢复内容开始---

1.安装build-essential。

列出Git相关包(git-core 和 git-doc)所以来的各个安装包并安装:

sudo apt-get build-dep git-core git-doc

2.上述依赖包安装完成后,下载git源码包到适当路径并解压缩,然后在解压缩路径下进行编辑。

 git源码下载链接:http://git-scm.com/download/linux

对于Ubuntu,官方给出最简单的安装方式:

sudo apt-get install git

 3.验证git

使用如下命令,查看git版本

git --version

terminal里输出版本信息即说明成功,如:git version 1.7.9.5

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2021-11-20
  • 2022-03-06
  • 2021-05-19
  • 2021-06-05
  • 2022-12-23
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2021-05-04
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案