mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 09:02:17 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/ghq
Normal file
41
tldr/ghq
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 {{repository_url}} --look`
|
||||
|
||||
- Clone a repository via SSH:
|
||||
|
||||
`ghq get {{user}}/{{project}} -p`
|
||||
|
||||
- Update an existing repository to the latest version:
|
||||
|
||||
`ghq get {{repository_url}} -u`
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user