Migrate from Sourceforge to Github

我只是一个虾纸丫 提交于 2019-12-18 10:55:14

问题


I'm thinking about migrating a project from Sourceforge to Github. Besides the svn to git, what about migrating things like the issue tracker? Is there an easy way to do that?


回答1:


I've written a Python script to migrate issues. It's at https://github.com/ttencate/sf2github.

Beware: Sunday afternoon software. Use at your own risk, etc. etc. Pull requests welcome!




回答2:


For SVN to GitHub part, this is now the easiest way: https://import.github.com/new

But it doesn't import issues.




回答3:


since I just have done this here is my approach

create a local git repository from the remote svn repository

git svn clone http://svn/repo/here/trunk

now push the repository to github

git remote rename origin upstream
git remote add origin git@github.com:myname/myproject.git
git push origin master



回答4:


This script uses rsync to sync the raw svn repo onto your /tmp directory and requires the svn2git ruby gem for importing the svn commit info into git.

If you happen to use a newer version of the SVN infrastructure provided by sourceforge (aka SVN 2.0 dev), you can use this script instead - I forked off the original to just make changes to the rsync command. :)



来源:https://stackoverflow.com/questions/2954165/migrate-from-sourceforge-to-github

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