How to migrate from xp-dev to github?

徘徊边缘 提交于 2021-02-08 09:04:39

问题


I have a repository in xp-dev that I want to move to github. I have no experience in xp-dev but I do know github. How would I migrate that repository to github?


回答1:


The easiest way would be to clone your xp-dev repo, and a remote to GitHub and push it there:

git clone --mirror <xp-dev-url>
cd xpdevRepo
git remote add github newGitHubRepoUrl
git push -f --tags github refs/heads/*:refs/heads/*

That supposes you have created an empty repo on GitHub first.



来源:https://stackoverflow.com/questions/22567569/how-to-migrate-from-xp-dev-to-github

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!