Skip to content
Clone all repos of a github organization
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/clone-org
.gitignore
.travis.yml
LICENSE.md
Makefile
README.md
clone-org.go
glide.lock
glide.yaml
goreleaser.yml

README.md

clone-org

Release Software License Travis

Go Report Card Godoc SayThanks.io 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.

Install

brew install caarlos0/tap/clone-org

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.
You can’t perform that action at this time.