6

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

因此,我按照Linux 的 git 下载页面上的说明进行了尝试sudo apt-get install git,但得到了以下结果:

  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 上。

4

3 回答 3

7

This is due to Ubuntu has not updated the package yet in their repositories. The only way around this would be to compile from source, which you can download from https://github.com/git/git.

于 2013-10-13T20:33:18.930 回答
1

There are Ubuntu PPAs for Git, offering the latest version of it. Add one of those and you'll be able to install it. For example:

https://launchpad.net/~git-core/+archive/ppa

Read the "Adding this PPA to your system" information on how to do this.

于 2013-10-13T20:33:49.877 回答
1

您应该至少将整个系统升级到稀有:

http://packages.ubuntu.com/search?keywords=git-core

(如果您坚持打包版本。)

但无论如何,来源会更新鲜。

于 2013-10-13T20:36:58.897 回答