如何验证svn到git的转换? [英] How to verify svn to git conversion?
问题描述
在svn-to-git之后执行什么检查以确保您拥有所有标记/分支/提交等,因为它们在svn上并且没有任何内容会丢失?
$ b
- git远程分支的编号和名称与svn分支匹配
- 标签的数量和名称与svn标签匹配
- 每个分支上的提交数量在两个存储库中相同
您可以引导我并提出任何其他检查吗?是否有任何你知道的工具/脚本可能是有用的?
我还会检查任何 svn:ignore
你在SVN仓库中的设置被转换为 .gitignore
条目。您可以使用 .gitignore 文件rel =nofollow> git svn create-ignore :
$ git svn create-ignore
或者,如果您不想使用 .gitignore
文件(所有回购合作者共享),您可以将相同的规则放入您的本地回购协议 .git / info / exclude
档案:
$ git svn show-ignore> .git / info / exclude
What checks do you perform after the svn-to-git to make sure you have all tags/branches/commits etc. as they were on svn and nothing is lost?
Checks I can think of is:
- Number and names of git remote branches match svn branches
- Number and names of tags match svn tags
- Number of commits on each branch are the same in both repositories
Could you guide me and suggest any other checks? Are there any tools/scripts you are aware of that may be useful?
I would also check that any svn:ignore
settings you had in place in the SVN repo were converted to .gitignore
entries. You can create .gitignore
files using git svn create-ignore:
$ git svn create-ignore
Or, if you prefer not to use .gitignore
files (which are shared among all repo collaborators) you can put the same rules in your local repo's .git/info/exclude
file:
$ git svn show-ignore > .git/info/exclude
这篇关于如何验证svn到git的转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!