github-multi-clone

1.2.3 • Public • Published

github-multi-clone

Clone multiple github repositories at-once using a repository search-term.

Alternative Repository

https://git.thessaloniki.link/alex/github-multi-clone

Motivation

Clone (secure or backup) open-source projects in which your work might be dependent on, you never know....

Requirements

  • unix
  • git
  • node-lts

Install

$ npm install -g github-multi-clone

Help

$ github-multi-clone -h

Simple Examples:

$ github-multi-clone 'react stars:>250 language:javascript' --sort stars
Cloning into '/home/alex/github-archive/freeCodeCamp/freeCodeCamp'...
Cloning into '/home/alex/github-archive/facebook/react'...
Cloning into '/home/alex/github-archive/facebook/react-native'...
Cloning into '/home/alex/github-archive/facebook/create-react-app'...
....

the following command clones all repositories written in javascript, having the term react in it and having more stars than 250.

More about the search term: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories

Note: If your search-term results in xy number of repository all will be downloaded, paginated.

Suggestion

if for example you are a python / django developer you could use the following command to backup highly-dependent open-source repositories:

$ github-multi-clone 'django stars:>250 language:python' --sort stars

Options

Depth --depth - define the git clone --depth attribute to save some disk-space, history isn't always important, DEFAULT IS: 50

for more check --help | -h

Readme

Keywords

none

Package Sidebar

Install

npm i github-multi-clone

Weekly Downloads

0

Version

1.2.3

License

MIT

Unpacked Size

9.75 kB

Total Files

3

Last publish

Collaborators

  • alex20465