Skip to content

awesome-open-source-projects/github-bulk-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README for GitHub Bulk Clone

Overview

github-bulk-clone is a Python package that allows you to efficiently clone all repositories from a specified GitHub user, including private ones if you have access.

Installation

Install via pip:

pip install github-bulk-clone

Usage

Command-line

Run the following command in your terminal:

python -m github_bulk_clone <username> <clone_directory> [-t <token>]
  • <username>: GitHub username.
  • <clone_directory>: Local directory for cloning.
  • -t <token>: Optional GitHub personal access token.

Or you can just use blkclone

blkclone <username> <clone_directory> [-t <token>]

Python Script

Import and use the functions directly:

from github_bulk_clone import clone_all_repos_of

clone_all_repos_of('USER_NAME', 'YOUR_TOKEN', './my_repos')

Functions

  • get_all_repo_names(api_token, username): Fetches repository URLs.
  • store_repo_names_to_file(repo_list, path): Saves repository URLs to a file.
  • clone_from_list(repos, clone_directory): Clones repositories from a list.
  • clone_all_repos_of(username, api_token, clone_directory): Main function to clone repositories.

License

This project is licensed under the MIT License.

Contributing

Feel free to contribute via pull requests or by opening issues on GitHub.

About

A lightweight tool that helps with cloning all public repositories of a user or organization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages