提交 ad2a4689 编写于 作者: J Jingwen Owen Ou

Merge pull request #809 from github/2_x_readme

Only keep 2.x installation instruction since it’s released
......@@ -22,29 +22,26 @@ Dependencies:
* **git 1.7.3** or newer
### 2.x
Starting from 2.2.0, `hub` is [powered by Go](https://github.com/github/hub/issues/475).
It should maintain a high backward compatibility with 1.x. Note that 2.x is in preview.
#### Homebrew
`hub` 2.x can be installed through Homebrew. Since it's in preview, you need to compile
from HEAD:
`hub` can be installed through Homebrew:
~~~ sh
$ brew install --HEAD hub
$ brew install hub
$ hub version
git version 1.7.6
hub version 2.2.0
~~~
#### Standalone
`hub` 2.x can be easily installed as an executable. Download the latest
`hub` can be easily installed as an executable. Download the latest
[compiled binaries](https://github.com/github/hub/releases) and put it anywhere
in your executable path.
#### Source
To install `hub` 2.x from source, you need to have a [Go development environment](http://golang.org/doc/install),
To install `hub` from source, you need to have a [Go development environment](http://golang.org/doc/install),
version 1.4 or better:
~~~ sh
......@@ -61,25 +58,6 @@ directory is already in your PATH:
$ go get github.com/github/hub
~~~
### 1.x
#### Homebrew
Installing on OS X is easiest with Homebrew:
~~~ sh
$ brew install hub
~~~
Now you should be ready to roll:
~~~ sh
$ hub version
git version 1.7.6
hub version 1.8.3
~~~
Aliasing
--------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册