无法将SVN信息库(无中继)转换为git [英] Unable to convert svn repository (without trunk) to git

查看:133
本文介绍了无法将SVN信息库(无中继)转换为git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的svn存储库转换为git,但是我没有太大的成功.有问题的存储库没有类似"trunk"的内容.布局如下:

I'm trying to convert my svn repo to git, but I'm not having much success. The repository in question does not have anything like a "trunk". The layout is the following:


/home/svn/
      |--- /project1/
      |--- /project2/
      |--- /repos/project3/

这些项目文件夹下面是文件.没有树干,没有树枝,没有什么特别的.当时我只需要它,而现在却把我咬了.

And underneath those project folders are the files. No trunk, no branches, no nothing special. At the time that was all I needed, and now it's biting me in the ass.

我正在遵循此指南: http://john.albin.net/git/convert-subversion-to-git

当我运行此命令时:

git svn clone svn+ssh://skerit@host.com/home/svn/repos/kiflea --no-metadata -A authors-transform.txt --stdlayout ~/kiflea

它说它已经创建了一个空的git仓库...但是我真的不希望它是空的.

It says it has created an empty git repository... But I don't really want it to be empty.

我也不知道以下命令应该是什么样的,因为我的存储库具有不同的布局.

I also have no idea what the following commands should look like, since my repository has a different layout.

命令,例如 git symbolic-ref HEAD refs/heads/trunk git config remote.bare.push'refs/remotes/*:refs/heads/*'

推荐答案

只需删除-stdlayout 选项.这意味着躯干/分支/标签结构.

Just remove --stdlayout option. It means trunk/branches/tags structure.

这篇关于无法将SVN信息库(无中继)转换为git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆