diff --git a/README.adoc b/README.adoc index 2dee985..1d1450a 100644 --- a/README.adoc +++ b/README.adoc @@ -26,7 +26,8 @@ ghq root [--all] get:: Clone a remote repository under ghq root directory (see - <> below). If the repository is + <> below). `ghq clone` is an alias for this command. + If the repository is already cloned to local, nothing will happen unless '-u' ('--update') flag is supplied, in which case the local repository is updated ('git pull --ff-only' eg.). When you use '-p' option, the repository is cloned via SSH protocol. + diff --git a/commands.go b/commands.go index abbd35f..1f88369 100644 --- a/commands.go +++ b/commands.go @@ -16,8 +16,9 @@ var commands = []*cli.Command{ } var commandGet = &cli.Command{ - Name: "get", - Usage: "Clone/sync with a remote repository", + Name: "get", + Aliases: []string{"clone"}, + Usage: "Clone/sync with a remote repository", Description: ` Clone a repository under ghq root directory. If the repository is already cloned to local, nothing will happen unless '-u' ('--update')