Code Monkey home page Code Monkey logo

github-bulkclone's Introduction

Github Bulk Clone

forthebadge made-with-python

Clones a list of Github repositories into a commom folder.

Examples

File: .env

(this token is just an example. Don't even try using it.)

GITHUB_ACCESS_TOKEN=ghp_qUiRYTAnBUkxjgFQAwEs3UqUiRYTAnBUkxjg

File: repositories.txt

https://github.com/cicerotcv/crowdfunding-smart-contract
https://github.com/cicerotcv/buymeabitcoffee.git
https://github.com/cicerotcv/python-screenshot/tree/master/pyscreenshot
https://github.com/username/repo
# considering you have access to all the repositories
$ python3 -m bulkclone -i repositories.txt -o repos

# considering you need to use the access token to have access
# and it's already set to GITHUB_ACCESS_TOKEN environment variable
# or there is a .env file in the current directory
$ python3 -m bulkclone -i repositories.txt -o repos --use-access-token

# in case you want to use a custom .env path
$ python3 -m bulkclone -i repositories.txt -o repos --use-access-token -e /path/to/.env

Arguments:

[-i, --input-file] INPUT_FILE 
    Path of the input file which each line is a Github repository url.

--use-access-token
    Whether should use Github access token or not.

[-e, --env] DOTENV_PATH
    .env file containing GITHUB_ACCESS_TOKEN variable.
    Defaults to ".env"

[-o, --output-dir] OUTPUT_DIR
    Directory in which all the repositories will be cloned inside.
    Defaults to "repositories/"
  
[--pattern] DIRECTORY_PATTERN
    Cloned directory name pattern. Accepts wildcards {user} and {repo}.
    Using "{user}_{repo}" as pattern, this repository would be cloned into "cicerotcv_github-bulkclone".
    Defaults to "{repo}"
Bitcoin address Ethereum Address

github-bulkclone's People

Contributors

cicerotcv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.