snippetbashTip
ghq — Manage remote repository clones organized by hostname and path. More information: <https://github.co
Viewed 0 times
commandclonesorganizedclimanageghqremoterepository
Problem
How to use the
ghq command: Manage remote repository clones organized by hostname and path. More information: <https://github.com/x-motemen/ghq>.Solution
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}} --lookClone a repository via SSH:
ghq get {{user}}/{{project}} -pUpdate an existing repository to the latest version:
ghq get {{repository_url}} -uList all locally cloned repositories:
ghq listList locally cloned repositories with full paths:
ghq list --full-pathRemove a locally cloned repository:
ghq rm {{user}}/{{project}}Code Snippets
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}} --lookClone a repository via SSH
ghq get {{user}}/{{project}} -pUpdate an existing repository to the latest version
ghq get {{repository_url}} -uContext
tldr-pages: common/ghq
Revisions (0)
No revisions yet.