Skip to content

simple tool to clone all repos in a project that share a common prefix

Notifications You must be signed in to change notification settings

ruyl/github-clone-all

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

github-clone-all.py

If you have a GitHub project with an ever-growing number of repos, and you want to automatically clone all those repos to your desktop all at once, such as downloading hundreds of student code repos for grading, then this script is for you.

Installation

  1. If you haven't already done this, you'll first need to pip install requests for a necessary library.

  2. Get a GitHub token with all the "Repo" privileges. You do this on the GitHub website (instructions).

  3. Optionally, edit the defautGithubProject variable to reflect your project's name (e.g., for https://github.com/RiceComp215, the project name is RiceComp215). You can also install your GitHub API token in the defaultGithubToken variable.

Usage

Now let's say you want to get every repo beginning with comp215-week06. You can simply run python github-clone-all.py --prefix comp215-week06 --out codedump-week06 and it will create the directory codedump-week06 and will check out all of the repos sharing the given prefix.

About

simple tool to clone all repos in a project that share a common prefix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%