将未托管的SVN Repo迁移到GIT

时间:2015-10-28 09:13:48

标签: git svn bitbucket git-svn

我有一个SVN存储库(大小为1.6GB),我的客户刚刚提供给我。存储库未托管,并以ZIP文件格式提供给我。如何将其转换为GIT-BitBucket仓库?

我发现将SVN迁移到GIT的所有答案都需要在某处托管SVN存储库,然后使用svn git执行迁移,但这只是我的zip文件。如果可能的话,我也想保留提交和分支的历史。

最好的方法是什么?

2 个答案:

答案 0 :(得分:1)

您可以在自己的计算机上托管svn,然后正常执行转换说明。然后,服务器的网址将以file://而非普通http://或任何similliar协议开头

答案 1 :(得分:1)

在评论中,您说您拥有存储库本身,其中包含“trunk,branches,tags”文件夹。这是存储库的结帐,而不是实际的存储库。存储库的根目录看起来更像是:

drwxrwsr-x  2 svn svn 4096 Sep 29  2005 conf/
drwxrwsr-x  2 svn svn 4096 Sep 29  2005 dav/
drwxrwsr-x  6 svn svn 4096 Jun 23 02:31 db/
drwxr-xr-x  2 svn svn 4096 Jun 23 07:09 hooks/
drwxrwsr-x  2 svn svn 4096 Sep 29  2005 locks/
drwxr-sr-x  7 svn svn 4096 Feb  7  2008 tags/
-r--r--r--  1 svn svn  379 Sep 29  2005 README.txt
-r--r--r--  1 svn svn    2 Sep 29  2005 format

README.txt说的是这样的话:

This is a Subversion repository; use the 'svnadmin' tool to examine
it.  Do not add, delete, or modify files here unless you know how
to avoid corrupting the repository.

If the directory "db" contains a Berkeley DB environment,
you may need to tweak the values in "db/DB_CONFIG" to match the
requirements of your site.

Visit http://subversion.tigris.org/ for more information.

如果您没有,那么您没有存储库。

(如果重要的话,上面的内容来自Subversion 1.8 repo,格式3。)

相关问题