11/12 free views
Tool
CLI
Governance, Risk, and Compliance (GRC)

ghorg

by gabrie30

1.8Kstars
180forks
22watchers
Updated 6 months ago
About

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.

Key Features
  • 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-clean

Clone repositories without cleaning local changes, preserving any modifications in the local clone directory.

>_ ghorg reclone

Shortcut command to simplify complex clone commands for repeated use.

>_ ghorg reclone-server

Start an HTTP server to initiate clone operations remotely.

>_ ghorg reclone-cron

Schedule cloning tasks to run automatically using cron jobs.

Security Frameworks
Reconnaissance
Collection
Discovery
Resource Development
Persistence
Usage Insights
  • 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

Security Profile
Red Team60%
Blue Team70%
Purple Team75%
Details
LicenseApache License 2.0
LanguageGo
Open Issues199
Topics
github
gitlab
bitbucket
clone
gitea
go
devops
security-tools