I initialized a Git repository with: git svn init https://path/to/proj
Then I updated my .git/config file to specify the locations of the branches/tags:
fetch = cascade/trunk:refs/remotes/trunk
branches = cascade/branches/{feature-branch1,feature-branch2}:refs/remotes/*
branches = cascade/branches/{6.x,5.x,4.x,3.x,archive}/*:refs/remotes开发者_如何学JAVA/*
tags = cascade/tags/{3.7.x,4.x,5.x,6.x,old-releases}/*:refs/remotes/tags/*
Then, I fetched the revisions 5000 at a time:
git svn -r1:5000 -A/path/to/mapping/file fetch
git svn -r5000:10000 -A/path/to/mapping/file fetch
git svn -r10000:14000 -A/path/to/mapping/file fetch
git svn fetch
The problem is that after all that git log
tells me that the last revision in my master branch is the one mapped from svn revision 5000. What gives?
"fetch" does not merge the changes into your master, that's why you're not seeing them. After performing those commands, do a final git svn rebase
.
精彩评论