Code Monkey home page Code Monkey logo

multiclone's Introduction

Multiclone

Clone all the forks of a repository, or all the repos of a GitHub 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 a myrepos .mrconfig file.

Installation

Install multiclone

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

Homebrew can be used to install multiclone on macOS:

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

Set GITHUB_TOKEN

Create a GitHub personal access token for the command line

Set GITHUB_TOKEN to this value: export GITHUB_TOKEN=…

Usage

multiclone https://github.com/owner/repo
multiclone 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 --classroom
multiclone org/repo --classroom

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

This is intended for use with repos created via GitHub Classroom.

Options

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

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

multiclone owner/repo --dry-run

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

multiclone --help

Lists additional options.

Develop

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

Alternatives

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

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

License

MIT

multiclone's People

Contributors

osteele avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pombredanne

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.