Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions pages/common/ghq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ghq

> Manage remote repository clones organized by hostname and path.
> More information: <https://github.com/x-motemen/ghq>.

- Clone a repository under the ghq root directory (default is `~/ghq`):

`ghq get {{repository_url}}`

- Clone a repository from a user/project format (defaults to GitHub):

`ghq get {{user}}/{{project}}`

- Clone a repository and cd into it:

`ghq get --look {{repository_url}}`

- Clone a repository via SSH:

`ghq get -p {{user}}/{{project}}`

- Update an existing repository to the latest version:

`ghq get -u {{repository_url}}`

- List all locally cloned repositories:

`ghq list`

- List locally cloned repositories with full paths:

`ghq list --full-path`

- Remove a locally cloned repository:

`ghq rm {{user}}/{{project}}`