将svn存储库导入具有主干,标签,分支和发行版的git的最佳方法 [英] Best way to import a svn repo to git that has trunk, tags, branches and releases
问题描述
我在 sourceforge 上运行了一个项目,该项目称为
I run a project on sourceforge called mqmanager.NET that I inherited from the original author. Long story short I want to migrate this, and the rest of, my sourceforge projects to github. The problem here is that the typical import process assumes you have trunk, tags, and branches. I have these plus a releases folder. The particular command I am currently using is:
git.exe svn clone "https://mqmanager.svn.sourceforge.net/svnroot/mqmanager" "C:\src\mqmanager" -T trunk -b branches -t tags
现在,我主要关注主干和发布,但我想保留所有内容.我应该使用其他版本的命令吗?
Now, I'm mainly concerned by trunk and releases, but I'd like to keep everything. Is there another version of the command I should be using?
推荐答案
来自 TFM :
您可以指定更多 多个--tags和/或--branches选项,以防您 Subversion存储库将标签或分支放置在多个目录下 路径.
You can specify more than one --tags and/or --branches options, in case your Subversion repository places tags or branches under multiple paths.
如果应该将发行版转换为git标签,那么您可以说
If releases should be turned into git tags, then you could say
git svn clone <url> <local> -T trunk -b branches -t tags -t releases
这篇关于将svn存储库导入具有主干,标签,分支和发行版的git的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!