/git-mass

Mass download all github repositories(public & private) of an organization, ideally in a few seconds.

Primary LanguageGoMIT LicenseMIT

Git Mass

Mass download all github repositories(public & private) of an organization, ideally in a few seconds.

Writing this as a simple bash script would've taken me a few minutes, but this took me a few hours to learn and write. Expect stupid mistakes.

Installation

Download the binary from the releases page and run it.

Or, you could clone the repository and build it yourself.

Usage

Assuming you have the binary installed, you can do the following:

Configure / Re-Configure

  • Configure/re-configure your credentials:
git-mass config -u <username> -t <token>
  • Verify if your configured credentials are valid:
git-mass config

You can generate a token from here. Highly recommend you set token-expiry.

List all (public)organizations

git-mass orgs

Go to https://github.com/orgs/<organization>/people if you want to switch between public/private.

Clone all repositories from an organization

git-mass clone -o <organization>

TODOs

  • Might add GitLab integration