x-motemen

x-motemen/ghq

Go MIT Dev Tools

Remote repository management made easy

3.7k stars
207 forks
active
GitHub +10 / week

3.7k

Stars

207

Forks

45

Open issues

30

Contributors

v1.10.1 11 Apr 2026

AI Analysis

ghq is a command-line tool for organizing and managing clones of remote repositories (GitHub, GitLab, etc.) in a standardized directory structure, similar to how `go get` works. It serves developers and teams who maintain multiple repository clones and need a consistent, navigable file organization system. It is not a replacement for Git itself, but rather a management layer on top of Git for handling repository discovery and local organization.

Dev Tools CLI Tool Discovery value: 5/10
Documentation 8/10
Activity 9/10
Community 8/10
Code quality 8/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

repository-management go-cli git-workflow local-repository-organization developer-utility
Actively maintained Well documented MIT licensed Niche/specialized use case Production ready
Deep Analysis · Based on README and public signals
4d ago

Go utility for standardizing remote repository organization across developers and teams

ghq organizes Git/Mercurial/SVN clones under a single root directory using repository URLs as a naming scheme (inspired by Go's package management). It solves the problem of scattered repository clones across developer machines by imposing a consistent directory structure. Adoption appears concentrated among Go developers and terminal-centric workflows, particularly in Japan and among users seeking workspace organization without full monorepo tooling. Real-world adoption is not extensively documented but appears stable in its niche.

Origin

ghq was created in 2013 as a lightweight alternative to ad-hoc repository cloning practices. It formalized the Go package management pattern (github.com/user/project) into a general developer workspace tool. The project has maintained steady activity over 13 years with incremental feature additions rather than major rewrites.

Growth

The project gained approximately 3,696 stars over 13 years—roughly 284 stars per year, suggesting slow but consistent adoption. Recent activity (13 stars in last 7 days) is typical of mature, stable projects with modest ongoing interest. The growth trajectory suggests the project found a stable niche rather than explosive market adoption. No evidence of viral adoption waves or major enterprise deployment announcements.

In production

Adoption not verified. README and repository metadata provide no case studies, enterprise usage data, or community size metrics. No testimonials, integration documentation with other tools, or industry visibility. The project exists and is maintained, but real-world production adoption scale is undocumented. Moderate GitHub stars (3,696) relative to similar tools suggest existing user base but not dominating the category.

Code analysis
Architecture

Based on README, ghq is a command-line tool written in Go that wraps VCS operations (git clone, hg clone, svn checkout) and organizes results in host/user/project directories. Likely implements URL parsing, VCS detection, and filesystem operations. Supports multiple root directories, shallow clones, bare clones, and partial clones (blobless/treeless). The design appears intentionally minimal—it delegates actual VCS operations to underlying tools rather than reimplementing them.

Tests

README shows CI/CD badge linking to GitHub Actions test workflow and codecov coverage badge, indicating automated testing is in place. Exact coverage percentage not stated in README.

Maintenance

Last push 2026-07-05 (1 day before evaluation date) indicates active maintenance as of analysis time. README is detailed and well-organized. Project is 13 years old with regular updates, suggesting stable long-term maintenance model rather than abandonment risk. Slow growth rate is consistent with a mature, solved problem rather than churn or decline.

Honest verdict

ADOPT IF: You work in Go-heavy environments, terminal-first workflows, or multi-machine setups where consistent repository organization reduces context switching and improves discoverability of local clones. You prefer lightweight, Unix-philosophy tools that delegate to system VCS. AVOID IF: You rely on IDE-integrated clone management, monorepo tooling, or complex workspace orchestration. You need enterprise documentation or commercial support. Your workflow involves frequent mass repository operations requiring scripting integration. MONITOR IF: You are evaluating developer productivity tools and want to assess whether standardized repository organization meaningfully reduces friction in your team's workflow before broader adoption.

Independent dimensions

Mainstream potential

3/10

Technical importance

5/10

Adoption evidence

2/10

Risks
  • Adoption and user base are not documented; unclear how many teams/individuals actually use this in production or whether satisfaction is high.
  • Limited to standard VCS operations; cannot replace full monorepo or workspace orchestration platforms if teams grow beyond local clone organization.
  • Go-centric history may create perception of being a Go-only tool, even though it works with any VCS and any programming language.
  • Depends on presence and configuration of underlying VCS tools (git, hg, svn) on user machines; no bundled VCS implementation.
  • Maturity and slow growth may signal the problem space is 'solved well enough' by alternatives (monorepos, IDE cloning, package managers), limiting future adoption runway.
Prediction

ghq will likely remain a stable, maintained tool for its niche audience (developers who value consistent local repository organization) without achieving mainstream adoption. Expect continued slow growth, occasional feature additions, and low deprecation risk due to simplicity and minimal dependencies.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

Go
94.6%
Shell
3.8%
Perl
0.9%
Makefile
0.6%

Information

Language
Go
License
MIT
Last updated
5d ago
Created
163mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

gabrie30

gabrie30/ghorg

ghorg is a CLI tool that rapidly clones or backs up all repositories from an...

2.1k Go DevOps
cli

cli/cli

GitHub CLI (`gh`) is the official command-line interface for GitHub, bringing...

45.2k Go Dev Tools
lindell

lindell/multi-gitter

multi-gitter is a CLI tool that automates bulk repository updates across...

1.2k Go DevOps
go-git

go-git/go-git

go-git is a pure Go implementation of Git that provides both low-level...

7.6k Go Dev Tools
go-gitea

go-gitea/gitea

Gitea is a self-hosted, all-in-one software development platform written in Go,...

56.8k Go Dev Tools
vs. alternatives
gabrie30/ghorg (2,075 stars)

Broader scope—bulk organization of GitHub/GitLab organizations into local directories. ghq is narrower, focused on individual repository management. ghorg appears positioned for DevOps teams; ghq for individual developers.

cli/cli (45,142 stars)

GitHub's official CLI is much larger in scope and adoption. cli/cli handles authentication, PR/issue management, and workflows. ghq is orthogonal—manages local clones, not remote interactions. Different use cases; not direct competitors.

lindell/multi-gitter (1,214 stars)

Targets bulk repository operations and CI/CD workflows across multiple repos. ghq focuses on local organization first. multi-gitter is scripting/automation-oriented; ghq is workspace-organization-oriented.

go-git/go-git (7,603 stars)

Low-level Git library for Go. ghq uses (likely) system git rather than go-git. go-git targets library consumers; ghq targets end-user developers.

Manual directory organization + shell aliases

Most developers still manually organize clones or use ad-hoc scripts. ghq's main advantage is standardization; trade-off is learning a new tool for a solved (if messy) problem.