Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SVN到git迁移:如何将分支从SVN添加到迁移的git(Gerrit)_Git_Svn_Migration_Gerrit_Svn2git - Fatal编程技术网

SVN到git迁移:如何将分支从SVN添加到迁移的git(Gerrit)

SVN到git迁移:如何将分支从SVN添加到迁移的git(Gerrit),git,svn,migration,gerrit,svn2git,Git,Svn,Migration,Gerrit,Svn2git,我已经将SVN回购迁移到git,并将其添加到Gerrit项目中 我的问题是SVN回购有多个分支。如何迁移分支并将其添加到现有Gerrit项目中 提前谢谢 见 git for-each-ref --format="%(refname:short)" refs/remotes/svn | sed 's#svn/##' | grep -v '^tags' | while read aBranch; do git branch $aBranch svn/$aBranch || exit

我已经将SVN回购迁移到git,并将其添加到Gerrit项目中

我的问题是SVN回购有多个分支。如何迁移分支并将其添加到现有Gerrit项目中

提前谢谢

git for-each-ref --format="%(refname:short)" refs/remotes/svn |
   sed 's#svn/##' | grep -v '^tags' |
      while read aBranch; do git branch $aBranch svn/$aBranch || exit 1; done