Giter VIP home page Giter VIP logo

githubcloner's Introduction

GithubCloner

A script that clones Github repositories of users and organizations.

Usage

Description Command
Help ./githubcloner.py --help
Clone all repositories of a single user. ./githubcloner.py --user user -o /tmp/output
Clone all repositories of multiple users. ./githubcloner.py --user user1,user2,user3 -o /tmp/output
Clone all repositories of a single organization. ./githubcloner.py --org organization -o /tmp/output
Clone all repositories of multiple organizations. ./githubcloner.py --org organization1,organization2 -o /tmp/output
Clone all repositories of an organization in a hosted Github ./githubcloner.py --org organization -o /tmp/output --api-prefix https://git.company.com/api/v3
Modify the amount of used threads ./githubcloner.py --user user --threads 10 -o /tmp/output
Clone all repositories of an organization, along with all repositories of the organization's members. ./githubcloner.py --org organization --include-org-members -o /tmp/output
Use Github authentication in the task. ./githubcloner.py --org organization -o /tmp/output --authentication user:token
Clone authenticated repositories that the authenticated user has access to. ./githubcloner.py -o /tmp/output --authentication user:token --include-authenticated-repos
Include gists. ./githubcloner.py --user user -o /tmp/output --include-gists
Save repos as username_reponame ./githubcloner.py --user user -o /tmp/output --prefix-mode underscore
Save repos as username/reponame ./githubcloner.py --user user -o /tmp/output --prefix-mode directory
Save repos as reponame ./githubcloner.py --user user -o /tmp/output --prefix-mode none
Print gathered URLs only and then exit. ./githubcloner.py --user user --include-gists --echo-urls

Compatibility

The project is compatible with both Python 2 and Python 3.

Requirements

  • Python2 or Python3
  • requests
  • gitpython

Testing

  • nosetests -vx

License

The project is licensed under MIT License.

Legal Disclaimer

This project is made for educational and ethical testing purposes only. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

Author

Mazin Ahmed

githubcloner's People

Contributors

mazen160 avatar clatze avatar danielhoherd avatar medwig avatar soulmerge avatar patrickauld avatar games647 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.