Skip to content

Instantly share code, notes, and snippets.

@jfisbein
Forked from nhoag/migrate-git.sh
Created November 25, 2013 16:26
Show Gist options
  • Save jfisbein/7644078 to your computer and use it in GitHub Desktop.
Save jfisbein/7644078 to your computer and use it in GitHub Desktop.
#!/bin/bash
src_git="$1"
dst_git="$2"
git clone --mirror ${src_git} migrate
cd migrate
git remote add dst ${dst_git}
git push --mirror dst
cd ..
rm -rf migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment