简体   繁体   English

如何在没有注释标签的情况下将SVN存储库转换为GIT?

[英]How can I convert an SVN repository to GIT without annotated tags?

I used reposurgeon to convert ma svn into a git repository here: ( How do I convert an svn repo to git using reposurgeon? ). 我在这里使用reposurgeon将ma svn转换为git存储库:( 如何使用reposurgeon将svn repo转换为git? )。

It seems like it converted all tags to "annotated tags". 似乎将所有标签都转换为“带注释的标签”。 How can I change that beaviour? 我该如何改变这种行为?

I tried tagify option but that didn't change it. 我尝试了tagify选项,但是并没有改变它。

The problem is, that the converted tags are shown in the log at the place when I created the tag and not at the place of the revision they belong to. 问题是,转换后的标签显示在日志中我创建该标签的位置,而不显示在它们所属的修订版的位置。 In SVN they are shown at the right place in the log where they belong, no matter how long later I created them. 在SVN中,无论我创建它们多长时间,它们都会显示在它们所属的日志中的正确位置。

It seems like this has to do something with that reposurgeon adds a commit for .gitignore in each tag that looks like this: 似乎这与该reposurgeon有所关系,在每个标签中为.gitignore添加了一个提交,如下所示:

# A simulation of Subversion default ignores, generated by reposurgeon.
*.o
*.lo
...
*.pyo
*.rej
*~
.#*
.*.swp
.DS_store
# The contents of the svn:ignoreproperty on the branch root.
*~
nbproject
*.project

How can I make reposurgeon not create such a commit for gitignore in all tags? 我如何才能使reposurgeon不在所有标签中都为gitignore创建这样的提交? And let it create simple tags that don't appear in the timeline as a commit? 并让它创建不作为提交出现在时间轴上的简单标签?

Annotated tags seem to be correct. 带注释的标签似乎是正确的。

The problem lies somewhere else: 问题出在其他地方:

Convert an SVN repository to git with reposurgeon without creating .gitignore files? 使用reposurgeon将SVN存储库转换为git而不创建.gitignore文件?

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

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