提交 36efd000 编写于 作者: D Daniel Hahler

doc: add example for `git browse -- commit/SHA1`

Ref: https://github.com/github/hub/issues/516
上级 fd6e2e3b
......@@ -125,9 +125,12 @@ hub also adds some custom commands that are otherwise not present in git:
Open repository's GitHub page in the system's default web browser using
`open(1)` or the `BROWSER` env variable. If the repository isn't
specified, `browse` opens the page of the repository found in the current
directory. If SUBPAGE is specified, the browser will open on the specified
directory.
If SUBPAGE is specified, the browser will open on the specified
subpage: one of "wiki", "commits", "issues" or other (the default is
"tree"). With `-u`, outputs the URL rather than opening the browser.
"tree"). A specific commit in the default repository can be opened with
`git browse -- commit/<COMMIT>`.
With `-u`, outputs the URL rather than opening the browser.
* `git compare` [`-u`] [<USER>] [[<START>...]<END>]:
Open a GitHub compare view page in the system's default web browser.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册