我一直无法找到这个问题的充分解决方案,所以任何帮助都将不胜感激。这是设置:
git_svn_mirror
。svn_branch
。svn_branch
完成,包括多次从主干合并。git_from_svn_branch
创建了新的git repo svn_branch
。git_from_svn_branch
完成。svn_trunk
的HEAD合并到git_from_svn_branch
。图:
[git_svn_mirror] [SVN] [git_from_svn_branch]
| <-mirror |
| <-mirror |
| <-mirror |-\ \
| <-mirror | | |
| <-mirror |-| |
| <-mirror | | --> (move to git) --> | (kept branch history only)
| <-mirror | |
| <-mirror | |
| <-mirror | |
| <-mirror | HEAD <----
| <-mirror | |
HEAD HEAD |
|
^ ^ |
|____________|__ how do we get one of these, into |__ this (or vice-versa)
忽略导致我们到达这种情况的问题(“为什么创建了第二个git repo”等),问题的最佳解决方案是什么?
答案 0 :(得分:1)
git remote add git-from-svn-mirror its://repo/url
git fetch git-from-svn-mirror
git merge git-from-svn-mirror/master
应该这样做。