如何仅使用一些文件夹来git svn标签?
我有一个标准的SVN回购:
- 分支/
- 标签/
- 0.1/
- 0.2/
- trunk/
- devops/
- 代码/
我想通过git-svn标记 devops 和代码文件夹 tags/0.3 。
使用 git Svn标签0.3
而不是内部所有存储库,包括 tags 和 branches 。我该如何排除它们?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅
man git-svn
。对于“标准布局”中的SVN存储库(这是指,
branch/
tags/
trunk/
像您一样),您应该通过- stdlayout
/-s
togit svn clone
。这将具有将SVN“分支”和“标签”映射到Git分支的效果; SVN行李箱将成为GIT的主分支。
您的示例中,GIT回购中的预期工作树内容是:
Please see
man git-svn
.For svn repos in the "standard layout" (which means,
branches/
tags/
trunk/
like you have), you should pass--stdlayout
/-s
togit svn clone
.This will have the effect of mapping svn "branches" and "tags" to git branches; and svn trunk will become the master branch in git.
The expected working tree content in git repo for your example is this: