Clone all repositories for an organisation. If a repository already exists it will be updated.
$ npm install -g cloneall
Accepts a list of organisations. The following command will clone all github repositories you have access to:
$ cloneall githubFetching repo data from: https://api.github.com/orgs/github/reposFetching repo data from: https://api.github.com/organizations/9919/repos?page=2Fetching repo data from: https://api.github.com/organizations/9919/repos?page=3Fetching repo data from: https://api.github.com/organizations/9919/repos?page=4Fetching repo data from: https://api.github.com/organizations/9919/repos?page=5Syncing 146 repos from 'github'Cloning into 'github/media'...remote: Counting objects: 59, done.remote: Total 59 , reused 0Receiving objects: 100% , 3.27 MiB | 61.00 KiB/s, done.Resolving deltas: 100% , done.Checking connectivity... done.Cloning into 'github/albino'...remote: Counting objects: 226, done.remote: Total 226 , reused 0Receiving objects: 100% , 38.90 KiB | 7.00 KiB/s, done.Resolving deltas: 100% , done.Checking connectivity... done.Cloning into 'github/hubahuba'.....
In order to clone repositories you need a token. The following command will save it for later use:
$ cloneall --save-token 7957f62fb14da0c81e5b900456bdd9caa840e09a
See this page for more information on how to create GitHub tokens.
Copyright (c) 2014 Mic Network, Inc
This software is released under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.