如何将不同的文件提交到两个不同的SVN(或git)存储库?

问题描述 投票:0回答:1

我有这个项目结构:

directoryA/
directoryB/

我现在需要使用SVN并在几个月后的Git中将directoryA提交到一个存储库,并将directoryA + directoryB提交到另一个存储库。

哪种策略最好将不同的文件提交到两个不同的存储库(可能使用一个脚本)?

是否可以同时打开两个存储库?

操作系统是Windows 10,但是我也不介意它是否也可以在Linux上运行。

git svn repository
1个回答
1
投票
使用svn2git。您可以使用路径指定哪个存储库。

https://github.com/svn-all-fast-export/svn2git

create repository project_v1 end repository create repository project_v2 end repository match /trunk/project_v1/ repository project_v1 branch master end match match /trunk/project_v2/ repository project_v2 branch master end match

注:标记是SVN中的分支,必须声明一些不同。 ([^/]+)/用于匹配标签名称。

match /tags/project_v1/([^/]+)/ repository project_v1 branch refs/tags/\1 annotated=true end match

© www.soinside.com 2019 - 2024. All rights reserved.