37

我正在考虑将一个项目从 Sourceforge 迁移到 Github。除了 svn 到 git,迁移问题跟踪器之类的东西怎么样?有没有简单的方法可以做到这一点?

4

4 回答 4

21

对于 SVN 到 GitHub 部分,这是现在最简单的方法:https ://help.github.com/en/github/importing-your-projects-to-github/importing-a-repository-with-github-importer

但它不会导入问题。

于 2015-03-27T18:02:42.820 回答
18

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!

于 2011-03-13T17:33:15.383 回答
14

因为我刚刚这样做了,所以这是我的方法

从远程 svn 存储库创建本地 git 存储库

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

现在将存储库推送到 github

git remote rename origin upstream
git remote add origin git@github.com:myname/myproject.git
git push origin master
于 2012-12-10T16:28:40.453 回答
0

脚本使用 rsync 将原始 svn 存储库同步到 /tmp 目录,并需要 svn2git ruby​​ gem 将 svn 提交信息导入 git。

如果您碰巧使用由 sourceforge(又名 SVN 2.0 开发)提供的 SVN 基础架构的较新版本,则可以改用脚本 - 我将原始版本分叉为仅对 rsync 命令进行更改。:)

于 2012-06-21T21:39:57.090 回答