Skip to content

Commit 7a05887

Browse files
ghq: add page (#18447)
Co-authored-by: Managor <[email protected]>
1 parent c7961b3 commit 7a05887

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/common/ghq.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# ghq
2+
3+
> Manage remote repository clones organized by hostname and path.
4+
> More information: <https://github.com/x-motemen/ghq>.
5+
6+
- Clone a repository under the `ghq` root directory (default is `~/ghq`):
7+
8+
`ghq get {{repository_url}}`
9+
10+
- Clone a repository from a user/project format (defaults to GitHub):
11+
12+
`ghq get {{user}}/{{project}}`
13+
14+
- Clone a repository and `cd` into it:
15+
16+
`ghq get {{repository_url}} --look`
17+
18+
- Clone a repository via SSH:
19+
20+
`ghq get {{user}}/{{project}} -p`
21+
22+
- Update an existing repository to the latest version:
23+
24+
`ghq get {{repository_url}} -u`
25+
26+
- List all locally cloned repositories:
27+
28+
`ghq list`
29+
30+
- List locally cloned repositories with full paths:
31+
32+
`ghq list --full-path`
33+
34+
- Remove a locally cloned repository:
35+
36+
`ghq rm {{user}}/{{project}}`

0 commit comments

Comments
 (0)