Skip to content

Instantly share code, notes, and snippets.

@hlandry
Created November 24, 2010 03:35
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 hlandry/713058 to your computer and use it in GitHub Desktop.
Save hlandry/713058 to your computer and use it in GitHub Desktop.
So to manually move a repository from another server to github. This is not a real script, just commands.
# First create a repo on github, then, do the following:
git clone --bare git@myoldserver.com:myoldrepo.git
cd myoldrepo.git
git push --mirror git@github.com:myusername/mynewrepo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment