Skip to content

Instantly share code, notes, and snippets.

@seyhunak
Created June 14, 2011 01:41
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 seyhunak/1024147 to your computer and use it in GitHub Desktop.
Save seyhunak/1024147 to your computer and use it in GitHub Desktop.
Cloning manual repo and push to Github
git clone --bare url/for/my-old-repo.git
cd my-old-repo.git
git push --mirror git@github.com:mycompany/my-new-repo.git
cd ..
rm -rf my-old-repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment