未验证 提交 a80a1c59 编写于 作者: M Mislav Marohnić 提交者: GitHub

Merge pull request #1681 from 0xmohit/doc

Document sync command in help
......@@ -12,13 +12,16 @@ import (
var cmdCompare = &Command{
Run: compare,
Usage: "compare [-u] [<USER>] [[<START>...]<END>]",
Usage: "compare [-u] [-b <BASE>] [<USER>] [[<START>...]<END>]",
Long: `Open a GitHub compare page in a web browser.
## Options:
-u
Print the URL instead of opening it.
-b <BASE>
Base branch to compare.
[<START>...]<END>
Branch names, tag names, or commit SHAs specifying the range to compare.
<END> defaults to the current branch name.
......
......@@ -174,4 +174,5 @@ These GitHub commands are provided by hub:
pr Work with pull requests
pull-request Open a pull request on GitHub
release List or create releases
sync Fetch git objects from upstream and update branches
`
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册