简体   繁体   English

SVN使用svn2git迁移到Git

[英]SVN to Git migration using svn2git

Can I use svn2git to migrate only trunk and maintain history as well? 我可以使用svn2git仅迁移主干并维护历史记录吗? If yes, how do I proceed with it. 如果是,我该如何进行。 I tried with something like this : 我尝试了这样的事情:

svn2git repoPath/trunk --authors authors.txt

Do I need some additional parmas as well? 我还需要一些额外的帕玛吗? It throws an error after looping through certain revisions: 遍历某些修订版后,它将引发错误:

command failed:
git checkout -f master

There is a lot os tools calling themself 'svn2git', even git has a utility to do that. 有很多操作系统工具称自己为“ svn2git”,即使git也有实用程序可以做到这一点。

But if you are using this svn2git : 但是,如果您使用的是svn2git

3 . 3。 The svn repo is NOT in standard layout and has only a trunk at the root level of the repo. svn存储库不是标准布局,在存储库的根目录级别只有一个主干。

svn2git http://svn.example.com/path/to/repo --trunk trunk --nobranches --notags

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

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