From 27e259c7890ae92b069691e77c76d786624d8846 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Sun, 5 Oct 2025 16:49:58 +0530 Subject: [PATCH 1/8] ghq: add page Add tldr page for ghq - a tool for managing remote repository clones. ghq organizes Git repositories in a structured directory hierarchy based on the repository URL's hostname and path. Closes #6118 --- pages/common/ghq.md | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pages/common/ghq.md diff --git a/pages/common/ghq.md b/pages/common/ghq.md new file mode 100644 index 00000000000000..7165af2e6b4580 --- /dev/null +++ b/pages/common/ghq.md @@ -0,0 +1,52 @@ +# ghq + +> Manage remote repository clones organized by hostname and path. +> More information: . + +- 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 using the `-p` flag: + +`ghq get -p {{user}}/{{project}}` + +- Clone a repository with a shallow clone (Git only): + +`ghq get --shallow {{repository_url}}` + +- Update an existing repository to the latest version: + +`ghq get -u {{repository_url}}` + +- List all locally cloned repositories: + +`ghq list` + +- List all locally cloned repositories with full paths: + +`ghq list --full-path` + +- List locally cloned repositories matching a query: + +`ghq list {{query}}` + +- Remove a locally cloned repository: + +`ghq rm {{user}}/{{project}}` + +- Display the path to the ghq root directory: + +`ghq root` + +- Create a new repository in the ghq root: + +`ghq create {{user}}/{{project}}` From a99994694567c835addd1f2aa75fc8bab06c4bf2 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Sun, 5 Oct 2025 17:01:06 +0530 Subject: [PATCH 2/8] Update ghq.md --- pages/common/ghq.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index 7165af2e6b4580..993f839651ea7e 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -50,3 +50,4 @@ - Create a new repository in the ghq root: `ghq create {{user}}/{{project}}` + From 20583da579e392a2343aa6d71a57c20e96dd71b0 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Sun, 5 Oct 2025 17:04:52 +0530 Subject: [PATCH 3/8] Update ghq.md --look syntax --- pages/common/ghq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index 993f839651ea7e..4d89f280ab46be 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -13,7 +13,7 @@ - Clone a repository and cd into it: -`ghq get -look {{repository_url}}` +`ghq get --look {{repository_url}}` - Clone a repository via SSH using the `-p` flag: From d095fcdcd26907ebfc69a1d16933944f9d3d3eaf Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Sun, 5 Oct 2025 17:08:04 +0530 Subject: [PATCH 4/8] Update ghq.md --- pages/common/ghq.md | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index 4d89f280ab46be..98c818f8d30b76 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -15,14 +15,10 @@ `ghq get --look {{repository_url}}` -- Clone a repository via SSH using the `-p` flag: +- Clone a repository via SSH: `ghq get -p {{user}}/{{project}}` -- Clone a repository with a shallow clone (Git only): - -`ghq get --shallow {{repository_url}}` - - Update an existing repository to the latest version: `ghq get -u {{repository_url}}` @@ -31,23 +27,10 @@ `ghq list` -- List all locally cloned repositories with full paths: +- List locally cloned repositories with full paths: `ghq list --full-path` -- List locally cloned repositories matching a query: - -`ghq list {{query}}` - - Remove a locally cloned repository: `ghq rm {{user}}/{{project}}` - -- Display the path to the ghq root directory: - -`ghq root` - -- Create a new repository in the ghq root: - -`ghq create {{user}}/{{project}}` - From ae8312479b56b3e2ab46f6e57c1975d8e81d8992 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Sun, 5 Oct 2025 23:19:28 +0530 Subject: [PATCH 5/8] Update pages/common/ghq.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/ghq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index 98c818f8d30b76..e2260088cfe0cb 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -3,7 +3,7 @@ > Manage remote repository clones organized by hostname and path. > More information: . -- Clone a repository under the ghq root directory (default is `~/ghq`): +- Clone a repository under the `ghq` root directory (default is `~/ghq`): `ghq get {{repository_url}}` From 8f2b2951b2e58f37ac0f693fc5a30419d099d486 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Sun, 5 Oct 2025 23:19:37 +0530 Subject: [PATCH 6/8] Update pages/common/ghq.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/ghq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index e2260088cfe0cb..5eb04b48603ed5 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -11,7 +11,7 @@ `ghq get {{user}}/{{project}}` -- Clone a repository and cd into it: +- Clone a repository and `cd` into it: `ghq get --look {{repository_url}}` From dcc4bd8a9e741f33f60cbb4195f3d568158f1470 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Mon, 6 Oct 2025 21:20:41 +0530 Subject: [PATCH 7/8] Update ghq.md --- pages/common/ghq.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index 5eb04b48603ed5..698bb4cdc9f6af 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -11,17 +11,17 @@ `ghq get {{user}}/{{project}}` -- Clone a repository and `cd` into it: +- Clone a repository and cd into it: -`ghq get --look {{repository_url}}` +`ghq get {{repository_url}} --look` - Clone a repository via SSH: -`ghq get -p {{user}}/{{project}}` +`ghq get {{user}}/{{project}} -p` - Update an existing repository to the latest version: -`ghq get -u {{repository_url}}` +`ghq get {{repository_url}} -u` - List all locally cloned repositories: From 5e98d1b0213e95c0869f179dd9b0955f40256397 Mon Sep 17 00:00:00 2001 From: kekwlboy12469 Date: Mon, 6 Oct 2025 21:28:54 +0530 Subject: [PATCH 8/8] Update pages/common/ghq.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/ghq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ghq.md b/pages/common/ghq.md index 698bb4cdc9f6af..dc8aae9352b80e 100644 --- a/pages/common/ghq.md +++ b/pages/common/ghq.md @@ -11,7 +11,7 @@ `ghq get {{user}}/{{project}}` -- Clone a repository and cd into it: +- Clone a repository and `cd` into it: `ghq get {{repository_url}} --look`