The other day I had to move a git repository from GitHub to Gitorious and after cracking my head against the wall about this problem for a little while, I think I came up with a pretty elegant solution.
Here are some of the assumptions we are making in this turtorial:
Now follow these steps:
~/Projects
origin
master
branch in origin
destination
master
branch to the destination
remote repoHere's the complete code listing for the above narrative:
1 2 3 4 5 6 7 | mkdir ~/Projects/XmlTidy cd ~/Projects/XmlTidy git init . git remote add origin git@github.com:gorauskas/XmlTidy.git git pull origin master git remote add destination git@gitorious.org:xmltidy/xmltidy.git git push destination master |
That's it... You're done!