linux - 如何在 Linux 上将 git 更新到最新版本?

标签 linux git ubuntu ubuntu-11.04

<分区>

我有 git 版本 1.7.4.1。并希望升级到最新的稳定版本 1.8.4。

所以我尝试了 sudo apt-get install git 正如它在 git downloads page for Linux 上所说的那样但我得到了这个结果:

  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  git is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.

$ git --version 
  git version 1.7.4.1

而且我坚持使用 git 版本 1.7.4.1!

我在 Ubuntu 11.04 上。

最佳答案

这是因为 Ubuntu 尚未在其存储库中更新软件包。解决这个问题的唯一方法是从源代码编译,您可以从 https://github.com/git/git 下载。 .

关于linux - 如何在 Linux 上将 git 更新到最新版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19349889/

相关文章:

linux - 是否存在与可执行文件无关的UNIX/Linux进程

linux - Linux 环境中的 Perl 脚本无法通过 cron 运行

json - 使用 jq 获取数组中 shell 定义的 JSON 对象内特定键的值

postgresql - Odoo服务器重启错误

linux - Bash 命令在终端中有效,但在脚本中无效

java - java中使用linux命令复制目录操作

git - visual studio 中的 sync git 键盘快捷键是什么?

windows - 如果分支名称在 Windows 上无效,则 Git 无法 pull/获取

git 状态返回 "fatal: Not a git repository"但 .git 目录存在

apache - 如何每天轮换 apache 日志文件?