Created
July 5, 2023 06:07
-
-
Save aslamanver/c6a69ea5a9e61a43c45c2d2a6a0ddd5d to your computer and use it in GitHub Desktop.
Migrate GIT Repositories Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gh repo list orgname --limit 1000 | while read -r repo _; do | |
echo "git clone --mirror [email protected]:$repo.git" | |
git clone --mirror [email protected]:$repo.git | |
# cd $repo.git | |
# git remote set-url origin [email protected]: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