SVN到git迁移:如何将分支从SVN添加到迁移的git(Gerrit)
我已经将SVN回购迁移到git,并将其添加到Gerrit项目中 我的问题是SVN回购有多个分支。如何迁移分支并将其添加到现有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
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