Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clone forks of a GitHub repo, or copies of a GitHub Classroom assignment

License

NotificationsYou must be signed in to change notification settings

osteele/multiclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clone all the forks of a repository, or all the repos of aGitHub Classroom assignment.

This is useful for collecting and reviewing assignments and student projects.

Features:

  • Written in Golang for easier distribution. (I got tired juggling of juggling Anaconda / virtualenv between various classroom and tool environments.)
  • Automatic repo discovery. Knows about “students fork” and “GitHub Classroom” conventions.
  • Repos are cloned in parallel.
  • Create amyrepos.mrconfig file.

Installation

Install multiclone

multiclone is written in Go with support for multiple platforms.The latest release can be found at thereleases page.

Homebrew can be used to install multiclone on macOS:

$ brew tap osteele/homebrew-tap$ brew install multiclone

SetGITHUB_TOKEN

Create aGitHub personal access token for the command line

SetGITHUB_TOKEN to this value:export GITHUB_TOKEN=…

Usage

multiclone https://github.com/owner/repomulticlone owner/repo

Clone forks of owner/repo into the current directory.

multiclone repos.txt

Clones the repo

repos.txt is a file with one repo name-with-owner, e.g.osteele/homework1, per line.

GitHub Classroom

multiclone https://github.com/owner/repo --classroommulticlone org/repo --classroom

Clone org's repos named repo-* into the current directory.

This is intended for use with repos created viaGitHub Classroom.

Options

multiclone --dir path/to/dir owner/repo

Clone into subdirectories ofpath/to/dir, instead of the current directory.

multiclone owner/repo --dry-run

See thegit commands that would be run, without actually running them.

multiclone --help

Lists additional options.

Develop

  1. Install go (1) viaHomebrew:brew install go; or (2)download.
  2. go install github.com/osteele/multiclone

Alternatives

TheseGitHub Education Community forum threads discuss a variety of alternatives (including one I wrote before I wrote this):

myrepos automates parallel management of a set ofrepos. It doesn't create the initial repo set, which is that this tool does.

License

MIT

About

Clone forks of a GitHub repo, or copies of a GitHub Classroom assignment

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp