2016-10-03 127 views
-1

我正在尝试将我的svn存储库迁移到git。将SVN迁移到Git

我使用Atlassian's migration instructions

  1. 首先,我得到了我的作者和映射他们

    Java的罐子./svn-migration-scripts.jar作者$ SVN_ROOT/$ SVN_PROJECT> authors.txt

  2. 然后我做了一个SVN克隆

    混帐svn的克隆--stdlayout前缀= '' --authors文件= authors.mapped.txt $ SVN_ROOT/$ SVN_PROJEC Ťworking.git

  3. 然后清洁的git

    的java -Dfile.encoding = UTF-8的罐子../svn-migration-scripts.jar清洁GIT中--force

它修复树枝

$git branch 
gary1 
* master 

而不是标签

这里是我的远程分支机构:

$git branch -r 
gary1 
origin/gary1 
origin/master 
tags/0.1.0+13 
tags/0.1.0+24 
tags/0.1.0+5 
trunk 
[email protected] 
[email protected] 

有没有建议吗?

回答

0

它看起来像Atlassian工具已将您的标签更改为分支。最简单的解决将是检查了标签分支

git checkout tags/0.1.0+13 

然后创建分支的头所需的标签

git tag -a v0.1.0.13 

然后合并到适当的分支https://git-scm.com/docs/git-merge

git checkout master 
git merge tags/0.1.0+13