Quickly clone or back up all of an org's or user's repositories into one directory
open sourceApache-2.0self-hostablefree
ghorg is a command-line tool that clones every repository of a GitHub organization or user into a single directory, and on later runs pulls and cleans the ones already there. It also works with GitLab, Bitbucket, Gitea, Codeberg/Forgejo and Sourcehut, cloud or self-hosted. You can filter which repositories it clones, create backups, save complex clone commands as reclone shortcuts, pull every repo without discarding local changes, run clones on a cron schedule or from an HTTP server, and track clone metrics over time.
Ways to install
Package managers
Problems it solves
- clone every repository in our GitHub organization with one command
- back up all of a GitLab group's repositories on a schedule
- grep across all of an org's code locally without cloning repos one by one
- onboard a new engineer by cloning all the team's repos at once
- keep a local mirror of hundreds of repos up to date
- audit every repository a user or organization owns
Features
- Clones all repos of an org or user into one directory
- GitHub, GitLab, Bitbucket, Gitea, Codeberg/Forgejo and Sourcehut, cloud and self-hosted
- Filters to select or skip repositories
- Backup mode
- Reclone shortcuts for saved clone commands
- Pull command that keeps local changes
- HTTP server and cron scheduling for clones
- Clone metrics tracked over time
- Config file at ~/.config/ghorg/conf.yaml
Capabilities
| Has a command line tool | plan not known |
|---|
