简体   繁体   English

svn2git或git svn import

[英]svn2git or git svn import

I'm about to migrate my SVN repo to GIT. 我即将把我的SVN回购迁移到GIT。 I'm going to use svn2git which uses the git-svn. 我将使用使用git-svn的svn2git。

Is there any way the process modifies the SVN repo? 这个过程有什么方法可以修改SVN回购吗? Since obviously this is very sensitive to change, I want to be sure that the original SVN will not be affected in any way. 由于显然这对变化非常敏感,我想确保原始的SVN不会受到任何影响。

I haven't used svn2git but I have just done git svn clone <URI to the svn repo> and it has worked perfectly fine for me. 我没有使用过svn2git,但我刚刚完成git svn clone <URI to the svn repo> ,它对我来说非常好。 No issues at all. 没问题。

Also see here: How to git-svn clone the last n revisions from a Subversion repository? 另请参见: 如何从Subversion存储库中git-svn克隆最后n个版本? and here: 8.2 Git and Other Systems - Migrating to Git 在这里: 8.2 Git和其他系统 - 迁移到Git

git-svn can commit changes back to svn with git svn dcommit , git svn branch or git svn tag commands, but it doesn't do so unless you explicitly tell it to. git-svn 可以使用git svn dcommitgit svn branchgit svn tag命令将更改提交回svn,但除非明确告诉它,否则它不会这样做。 svn2git only calls git svn init and git svn fetch , so it won't modify anything in the original repository. svn2git只调用git svn initgit svn fetch ,因此它不会修改原始存储库中的任何内容。

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

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