What is ghorg and when to use it
masterghorg (pronounced [gore-guh]) is a CLI tool used to quickly clone all repositories belonging to an organization or a specific user into a single directory.
Common use cases include:
- Searching an organization's or user's codebase using tools like
ack,silver searcher, orgrep. - Bash scripting.
- Creating backups of repositories.
- Onboarding new team members by cloning all relevant team repositories.
- Performing security or code audits.
Important Behavior Note: By default, if a repository already exists in the target directory, ghorg will perform a git pull and a git clean. This means any local changes in that directory will be overwritten by the remote state. To prevent losing local changes, either rename the directory or use the --no-clean flag in future runs.