ghorg
by gabrie30
ghorg is a CLI tool that quickly clones or backs up all repositories from an organization or user across multiple Git hosting providers into a single directory.
Quickly clone or backup an entire org/users repositories into one directory - Supports GitHub, GitLab, Bitbucket, and more 🐇🥚
Primary Use Case
ghorg is primarily used by developers, security auditors, and DevOps teams to efficiently clone or backup entire codebases from GitHub, GitLab, Bitbucket, or Gitea organizations or users. It simplifies onboarding, auditing, and backup processes by automating repository cloning and updates in one consolidated location.
- Clone or backup all repositories of an org/user into one directory
- Supports GitHub, GitLab, Bitbucket, and Gitea (self-hosted and cloud variants)
- Automatically performs git pull and git clean on existing repos to update them
- Selective repository cloning with filtering options
- Shortcut commands for simplifying complex clone operations
- HTTP server to initiate clone operations remotely
- Scheduling clone tasks using cron
- Tracking and monitoring clone metrics over time
Installation
- Download prebuilt binaries from the repository
- Install via Homebrew package manager
- Build and install using Golang tooling
- Use Docker container images for deployment
- Windows support available with specific instructions
- Optionally create a configuration file at $HOME/.config/ghorg
Usage
>_ ghorg clone <org_or_user>Clone all repositories from the specified organization or user into the current directory.
>_ ghorg clone <org_or_user> --no-cleanClone repositories without cleaning local changes, preserving any modifications in the local clone directory.
>_ ghorg recloneShortcut command to simplify complex clone commands for repeated use.
>_ ghorg reclone-serverStart an HTTP server to initiate clone operations remotely.
>_ ghorg reclone-cronSchedule cloning tasks to run automatically using cron jobs.
- Integrate ghorg with continuous integration pipelines to automate security audits and codebase backups.
- Use ghorg backups as a baseline for detecting unauthorized or malicious code changes during incident response.
- Leverage selective cloning filters to focus on high-risk repositories for targeted security reviews.
- Combine ghorg with static code analysis tools to streamline vulnerability discovery across an entire organization.
- Schedule regular cloning tasks to maintain up-to-date backups, supporting rapid recovery and forensic investigations.
Docs Take 2 Hours. AI Takes 10 Seconds.
Ask anything about ghorg. Installation? Config? Troubleshooting? Get answers trained on real docs and GitHub issues—not generic ChatGPT fluff.
This tool hasn't been indexed yet. Request indexing to enable AI chat.
Admin will review your request within 24 hours
Related Tools

unleash
Unleash/unleash
Open-source feature management platform
the-practical-linux-hardening-guide
trimstray/the-practical-linux-hardening-guide
This guide details creating a secure Linux production system. OpenSCAP (C2S/CIS, STIG).
how-to-secure-anything
veeral-patel/how-to-secure-anything
How to systematically secure anything: a repository about security engineering
404StarLink
knownsec/404StarLink
404StarLink - 推荐优质、有意义、有趣、坚持维护的安全开源项目
steampipe
turbot/steampipe
Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.
Security-101
microsoft/Security-101
8 Lessons, Kick-start Your Cybersecurity Learning.
