GitHub Repo Clone

From LD Smith Games Workshop
Revision as of 10:06, 23 May 2020 by Unknown user (talk) (Created page with "Loops through all of the public and private repositories for a user, and clones them to the local system == Requirements == * Ruby installed - https://www.ruby-lang.org/en/do...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Loops through all of the public and private repositories for a user, and clones them to the local system

Requirements

Setup

  • Copy Personal access token value (should be a hexadecimal string), and paste it for the value of API_TOKEN
  • Set CLONE_DIR to the directory where the cloned projects should exist (double backslash may be required on Windows)

Running

  • Start Git bash
  • ruby clone_git_repos.rb

Download / Source Code