Skip to content

Instantly share code, notes, and snippets.

@hsleewis
Created August 22, 2014 11:33
Show Gist options
  • Save hsleewis/c2048c6bfddcdccca0d7 to your computer and use it in GitHub Desktop.
Save hsleewis/c2048c6bfddcdccca0d7 to your computer and use it in GitHub Desktop.
clone git repo
cd $HOME
git clone --bare url-to-base-repo repo
cd repo
git push --mirror url-to-new-repo
cd ..
rm -rf repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment