- Optionally create a new organization to transfer your repositories to
- Create A GitHub Personal Access Token (Settings > Developer Settings > Personal Access Tokens)
- Clean the repo information so that just the name remains (each name is followed by whitespace, and size/fork info):
%s/\s.*$//g
- Clone this repository and open up a terminal in the root directory
- Install
bash
,curl
, &jq
and any dependencies if you don't already have them installed - pull all repos to
repos.txt
:bash get_repos.sh repos.txt
- confirm
repos.txt
content - Set your GitHub Personal Access Token (or password if you insist) as an environment variable named
GITHUB_SECRET
- Execute the program with your username (OWNER) and the name of the new owner (NEWOWNER):
bash bulk_transfer_repos.sh OWNER NEWOWNER
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