我如何将带有历史记录的SVN存储库迁移到新的Git存储库? [英] How do I migrate an SVN repository with history to a new Git repository?
问题描述
我读过Git手册,FAQ,Git - SVN崩溃课程等,他们都解释了这一点,但是无处可寻找一个简单的指令,例如:
<在SVN仓库中: svn:// myserver / path / to / svn / repos
: git:// myserver / path / to / git / repos
git-do-the-magic-svn-import-with-history \
svn:// myserver / path / to / svn / repos \
git:// myserver / path / to / git / repos
我不指望它那么简单,我也不期望它是一个单一的命令。但我确实希望它不要试图解释任何事情 - 只是说明在这个例子中要采取的步骤。
$ git svn克隆http:// svn / repo / here / trunk
Git和SVN的运行方式非常不同。你需要学习Git,如果你想跟踪SVN上游的变化,你需要学习 git-svn
。 git-svn
手册页有一个很好的示例部分:
$ git svn --help
I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like:
SVN repository in: svn://myserver/path/to/svn/repos
Git repository in: git://myserver/path/to/git/repos
git-do-the-magic-svn-import-with-history \
svn://myserver/path/to/svn/repos \
git://myserver/path/to/git/repos
I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.
Magic:
$ git svn clone http://svn/repo/here/trunk
Git and SVN operate very differently. You need to learn Git, and if you want to track changes from SVN upstream, you need to learn git-svn
. The git-svn
man page has a good examples section:
$ git svn --help
这篇关于我如何将带有历史记录的SVN存储库迁移到新的Git存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!