使用subgit迁移非标准布局subversion存储库,无分支、标记和主干

使用subgit迁移非标准布局subversion存储库,无分支、标记和主干,git,svn,subgit,Git,Svn,Subgit,我一直在使用subgit将我的subversion存储库转换为git。不幸的是,我的一个分支中有一个子项目不是标准布局。转换中不包括非标准子项目 子项目的内容如下: /my-subproject file1 dir1 subdir1-file1 file2 有没有办法在subgit.conf的映射中指定它?下面是subgit.conf中的映射 例如 如配置中所示,应 [git "my-subproject"] repository = /var/git/my-sub

我一直在使用subgit将我的subversion存储库转换为git。不幸的是,我的一个分支中有一个子项目不是标准布局。转换中不包括非标准子项目

子项目的内容如下:

/my-subproject
   file1
   dir1
     subdir1-file1
   file2
有没有办法在subgit.conf的映射中指定它?下面是subgit.conf中的映射

例如

如配置中所示,应

[git "my-subproject"]
repository = /var/git/my-subproject.git

translationRoot = /

trunk = /my-subproject:refs/heads/master
branches = branches/project/*:refs/heads/*
shelves = shelves/project/*:refs/shelves/*
tags = tags/project/*:refs/tags/*

我希望这会很有用。

请参阅
subgit帮助配置
,使用“--layout directory”

子Git配置--布局目录


“目录”:将URL视为一个分支并仅翻译该分支

通过执行以下操作,我能够将一个项目从SVN导入gitHUB,而没有主干或分支

checkout svn directory
subgit import --non-interactive --svn-url svn://svn/MyProject
subgit configure --layout directory svn://svn/MyProject repos.git
*Manually edit authors.txt to map accounts 
-- note that [svn] trunk is: trunk = :refs/heads/master

subgit install repos.git
cd repos.git/

git remote add github https://github.com/linkrd/NewMyProject
git push github --all --follow-tags

我以前提交的所有6000多个文件都在那里。

能否从存储库根目录(包括主存储库的主干/分支/标记/托架)示意性地显示存储库结构?
checkout svn directory
subgit import --non-interactive --svn-url svn://svn/MyProject
subgit configure --layout directory svn://svn/MyProject repos.git
*Manually edit authors.txt to map accounts 
-- note that [svn] trunk is: trunk = :refs/heads/master

subgit install repos.git
cd repos.git/

git remote add github https://github.com/linkrd/NewMyProject
git push github --all --follow-tags