On GitHub via another account,
- Create a repository.
- Set your primary account as a collaborator.
On GitHub via your primary account,
- Create a new empty repository.
On local with your primary account,
git clone --mirror "$REPOSITORY_URL"
cd "$REPOSITORY"
git remote set-url --push origin "$NEW_REPOSITORY_URL"
git push --mirror