2

我已经在本地安装了 Bonobo Git Server (3.4.2.0)。我有一个包含旧存储库的 SVN 服务器?如何导入这些存储库以在 Bonobo Git Server 下工作。

4

3 回答 3

3

我也是,曾经/现在必须将我们的 SVN 存储库迁移到 git(使用 Bonobo 服务器)。

几乎按照Troy Hunts 的博客文章中的说明进行操作

我创建了一个作者文件以将 svn 用户映射到 git 用户,从而将--authors ../authors.txt附加到svn2git命令行。

提供作者文件时,如果文件中没有记录,svn2git 将停止。

作者文件格式为每位作者 1 行
SVNUser = 全名 <email@domain>

于 2015-04-21T01:08:32.903 回答
1

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/

如何将具有历史记录的 SVN 存储库迁移到新的 Git 存储库?

于 2014-12-15T14:21:46.110 回答
0

我所做的是

1 在 Bonobo 中创建一个新的仓库

2 将其克隆到我的桌面

3 在克隆中,

git svn init http://192.168.x.y/svn/my_repo/trunk
git svn fetch
git push origin master
于 2015-01-28T11:10:54.957 回答