Skip to content

Commit

Permalink
Merge pull request #377 from Okabe-Junya/fix-374
Browse files Browse the repository at this point in the history
Feat: add alias for `ghq get`
  • Loading branch information
Songmu authored Apr 4, 2024
2 parents 5ace929 + 75710b1 commit ce5049f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ ghq root [--all]

get::
Clone a remote repository under ghq root directory (see
<<directory-structures,DIRECTORY STRUCTURES>> below). If the repository is
<<directory-structures,DIRECTORY STRUCTURES>> 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. +
Expand Down
5 changes: 3 additions & 2 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ce5049f

Please sign in to comment.