Giter Site home page Giter Site logo

github-org-clone's Introduction

github-org-clone

Build Status

A simple cli app to clone all repos managed by a github organisation or team. Requires that you pass a github api key (personal access token) and github username to the script or set the GITHUB_TOKEN and GITHUB_USER environment variable. See the help output below.

Install

The following script will install a binary from a tagged release

curl https://raw.githubusercontent.com/steinfletcher/github-org-clone/master/download.sh | sh
mv github-org-clone /usr/local/bin

Or install from master using go

go get github.com/steinfletcher/github-org-clone

Use

Export env vars in ~/.bashrc or equivalent

export GITHUB_USER=<your github username>
export GITHUB_TOKEN=<a github personal access token with clone repo privileges>

(Alternatively supply these as flags to the command --username and --token).

Clone team repos

github-org-clone --org MyOrg --team MyTeam

Clone organisation repos

github-org-clone -o MyOrg

Override the default location

github-org-clone -o MyOrg -d ~/projects/work

Override the github api url

github-org-clone -o MyOrg -a https://mycustomdomain.com

For enterprise installations include the full path to the github api

github-org-clone -o MyOrg -a https://mycustomdomain.com/api/v3

View docs

github-org-clone -h

github-org-clone's People

Contributors

steinfletcher avatar worldjoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-org-clone's Issues

exit status 128

Awesome tool. One of the few that works with large GitHub orgs.

However, I received exit status 128 on about 1/3 of repos when attempting to clone ~1200 repos. I wonder if github is rate limiting my user access token?

If I re-run the tool it picks up a few more each time, so I'm wondering if the rate limiting could be avoided by slowing down the request rate.

Just my two cents -- thanks for making something useful!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.