【发布时间】:2014-12-15 14:15:10
【问题描述】:
我已经在本地安装了 Bonobo Git Server (3.4.2.0)。我有一个包含旧存储库的 SVN 服务器? 如何导入这些存储库以在 Bonobo Git 服务器下工作。
【问题讨论】:
我已经在本地安装了 Bonobo Git Server (3.4.2.0)。我有一个包含旧存储库的 SVN 服务器? 如何导入这些存储库以在 Bonobo Git 服务器下工作。
【问题讨论】:
我也是,曾经/现在必须将我们的 SVN 存储库迁移到 git(使用 Bonobo 服务器)。
几乎遵循Troy Hunts' blog 帖子here 中的说明
我创建了一个将 svn 用户映射到 git 用户的作者文件,因此将 --authors ../authors.txt 附加到 svn2git 命令行。
提供作者文件时,如果文件中没有记录,svn2git 将停止。
作者文件格式为每位作者 1 行
SVNUser = 全名
【讨论】:
Git 可以导入 SVN 项目
git svn clone <repo>
取自: http://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git
更多资源:
https://www.atlassian.com/git/tutorials/migrating-overview/
How to migrate SVN repository with history to a new Git repository?
【讨论】:
我做的是
1 在 Bonobo 中创建一个新的 repo
2 将其克隆到我的桌面
3 在克隆中,
git svn init http://192.168.x.y/svn/my_repo/trunk
git svn fetch
git push origin master
【讨论】: