Skip to content

Instantly share code, notes, and snippets.

@peterjgrainger
Last active September 23, 2020 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterjgrainger/e08daa5dbade3712e4b30b7cccaea808 to your computer and use it in GitHub Desktop.
Save peterjgrainger/e08daa5dbade3712e4b30b7cccaea808 to your computer and use it in GitHub Desktop.
Duplicate repos
while IFS= read line; do
git clone --bare git@github.com:arup-group/$line.git
cd $line.git
git push --mirror git@github.com:parup-group/$line.git
rm -fr $line.git
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment