Skip to content

Clone all repos of a github organization

License

Notifications You must be signed in to change notification settings

Sindhuja365/clone-org

 
 

Repository files navigation

clone-org

Release Software License Build status Go Report Card Godoc Powered By: GoReleaser

A simple command line tool to clone all repos of a given organization.

I needed to do that so I can grep all repos for some stuff. GitHub search wasn't powerful enough to do what I needed, so, here it is.

Usage

NAME:
   clone-org - Clone all repos of a github organization

USAGE:
   clone-org [global options] command [command options] [arguments...]

VERSION:
   master

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --org value, -o value
   --token value, -t value         [$GITHUB_TOKEN]
   --destination value, -d value
   --help, -h                     show help
   --version, -v                  print the version

Notes

  • if no destination is provided, the clone will be made in /tmp/organization-name
  • a git clone --depth 1 will be performed, meaning that only the last commit of the default branch will be available. On future versions this may be configurable.

Install

go:

go install -v github.com/caarlos0/clone-org/cmd/clone-org@latest

homebrew:

brew install caarlos0/tap/clone-org

snap:

snap install clone-org

apt:

echo 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install clone-org

yum:

echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.dev/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install clone-org

deb/rpm/apk:

Download the .apk, .deb or .rpm from the releases page and install with the appropriate commands.

manually:

Download the pre-compiled binaries from the releases page or clone the repo build from source.

Stargazers over time

Stargazers over time

About

Clone all repos of a github organization

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%