Jens A. Koch

bash script for cloning all repositories of an github organization (clone-org.sh)

You need to adjust the GITHUB_ORGANIZATION to your needs.

 

You need to load your SSH KEY,
else you will run into the following error:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly.

Take care!

Filecontent:

 

2 Comments »

2 Responses

  1. Christian Weiske Says:

    This doesn’t work if the organization has so many repositories that they are split onto several pages.

    Github adds a Link header then, e.g. in https://api.github.com/orgs/pear/repos

  2. jakoch Says:

    When i find the time, i will take a look at this issue.