提交 fc197be6 编写于 作者: K Keenan Brock

document that clone directory is optional

上级 35c76bf9
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
var cmdClone = &Command{ var cmdClone = &Command{
Run: clone, Run: clone,
GitExtension: true, GitExtension: true,
Usage: "clone [-p] OPTIONS [USER/]REPOSITORY DIRECTORY", Usage: "clone [-p] OPTIONS [USER/]REPOSITORY [DIRECTORY]",
Short: "Clone a remote repository into a new directory", Short: "Clone a remote repository into a new directory",
Long: `Clone repository "git://github.com/USER/REPOSITORY.git" into Long: `Clone repository "git://github.com/USER/REPOSITORY.git" into
DIRECTORY as with git-clone(1). When USER/ is omitted, assumes DIRECTORY as with git-clone(1). When USER/ is omitted, assumes
...@@ -36,6 +36,9 @@ func init() { ...@@ -36,6 +36,9 @@ func init() {
$ gh clone -p jekyll_and_hyde $ gh clone -p jekyll_and_hyde
> git clone git@github.com:YOUR_LOGIN/jekyll_and_hyde.git > git clone git@github.com:YOUR_LOGIN/jekyll_and_hyde.git
$ gh clone jekyll_and_hyde jekyll
> git clone git://github.com/YOUR_LOGIN/jekyll_and_hyde.git jekyll
*/ */
func clone(command *Command, args *Args) { func clone(command *Command, args *Args) {
if !args.IsParamsEmpty() { if !args.IsParamsEmpty() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册