Skip to content

Instantly share code, notes, and snippets.

@aslamanver
Last active December 28, 2022 11:33
Show Gist options
  • Save aslamanver/a04a7b0eb347e21e7377fe19a6e3d0ba to your computer and use it in GitHub Desktop.
Save aslamanver/a04a7b0eb347e21e7377fe19a6e3d0ba to your computer and use it in GitHub Desktop.
Use GitHub CLI
gh repo list payable --limit 1000 | while read -r repo _; do
echo "git clone --mirror git@github.com:$repo.git"
git clone --mirror git@github.com:$repo.git
# cd $repo.git
# git remote set-url origin git@github.com:orgname/$REPO.git
# git push --mirror
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment