简体   繁体   English

设置git-svn存储库,其中svn主干/标签/分支组织在模块子文件夹中

[英]Setting up git-svn repository where svn trunk/tags/branches are organized in module subfolders

I want to set up git locally (using git-svn) on my companies svn that has the following structure: 我想在具有以下结构的公司svn上本地设置git(使用git-svn):

  • Module1 模块1
    • trunk 树干
    • branches 分支机构
    • tags 标签
      • tag1 TAG1
      • tag2 TAG2
  • Module2 单词数
    • trunk 树干
    • branches 分支机构
    • tags 标签
  • ... ...

I tried to use git svn clone /remote/path/to/svn/repo -s but the trunk/brances/tags structure is not standard. 我试图使用git svn clone /remote/path/to/svn/repo -s但是trunk / brances / tags结构不是标准的。 I guess I could specify all trunk/branches/tags by explicitly writing -T /local/path/to/module1/trunk -T /local/path/to/module2/trunk etc, which would be pretty cumbersome as there are many modules in the project. 我想我可以通过显式编写-T /local/path/to/module1/trunk -T /local/path/to/module2/trunk等来指定所有主干/分支/标签,这会很麻烦,因为有许多模块在项目中。 Is this the right way to go? 这是正确的方法吗?

My question is related to this one but I didn't find the answers satisfactory. 我的问题与有关,但我没有找到满意的答案。

I ended up checking out a separate git repository for each module (that I am actively working on). 最后,我为每个模块(我正在积极工作)签出了单独的git存储库。 Not 100% satisfactory but at least I can work with local commits and (lightweight) feature branches 并非100%令人满意,但至少我可以使用本地提交和(轻量级)功能分支

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM