zhiyue / github-transfer-script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-transfer-script

Preparation

  1. Optionally create a new organization to transfer your repositories to
  2. Create A GitHub Personal Access Token (Settings > Developer Settings > Personal Access Tokens)
  3. Clean the repo information so that just the name remains (each name is followed by whitespace, and size/fork info): %s/\s.*$//g

Usage

  1. Clone this repository and open up a terminal in the root directory
  2. Install bash, curl, & jq and any dependencies if you don't already have them installed
  3. pull all repos to repos.txt: bash get_repos.sh repos.txt
  4. confirm repos.txt content
  5. Set your GitHub Personal Access Token (or password if you insist) as an environment variable named GITHUB_SECRET
  6. Execute the program with your username (OWNER) and the name of the new owner (NEWOWNER): bash bulk_transfer_repos.sh OWNER NEWOWNER

Reference project

License

All work in this repository is made available under the terms of the AGPLv3 License, a copy of which is provided in the file called License. Copyright J.D. Bean 2019

About


Languages

Language:Shell 100.0%