This script allows the migration of as many repos as needed in an automated fashion. This isu seful for when migrating from an Enterprise GitHub server to github.com.
To add the repos that you need to migrate add them to the name=()
field.
name=(test test2 test3 test4)
Next, define the repo that you will clone by adding the User or Organization tied to that GitHub Repo.
git clone https://github.com/insertuserhere/"$name".git
or if using ssh
git@github.com:insertuserhere/"$name".git
the "$name" variable is filled in by the name=()
function definition.
Finally add the location of the new repo by adding it to the git remote add new git@github.com:User or organization here/"$name".git
command.
git remote add new git@github.com:Insertuserhere/"$name".git