Skip to content

Instantly share code, notes, and snippets.

@maximevalette
Created August 30, 2012 19:45
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 maximevalette/3539031 to your computer and use it in GitHub Desktop.
Save maximevalette/3539031 to your computer and use it in GitHub Desktop.
Migration vers GitHub
cd [votre repo local]
git remote add oldorigin git@[ancienserveurgit]:[organisation]/[nomdurepo].git
git remote set-url origin git@github.com:[organisation]/[nomdurepo].git
git clone git@[urldeorigin]:[organisation]/[nomdurepo].git [rep temporaire] --mirror
cd [rep temporaire]
git remote add github git@github.com:[organisation]/[nomdurepo].git
git push -f --mirror github
cd ..
rm -rf [rep temporaire]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment