Migrate from Sourceforge to Github

眉间皱痕 提交于 2019-11-29 23:40:55

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!

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

But it doesn't import issues.

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

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. :)

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