1

We recently moved from SVN to Git, but there's a single legacy branch that I need to bring in to the Git repository. The SVN and Git repositories are the same logical code (i.e. they're both called foo-lib), but the Git one has newer revisions from after we switched to Git.

Is there a way we can use git-svn to grab the history of a specific branch and graft it into the history of the git tree?

magneticMonster
  • 2,373
  • 6
  • 30
  • 46
  • kind of related question, which may be of interest here: http://stackoverflow.com/questions/3159282/migrate-svn-to-subdirectory-of-git – VonC Jul 07 '10 at 19:49
  • You should post that as an answer because it's pretty darn close to what I did. – magneticMonster Jul 07 '10 at 20:20

1 Answers1

0

Based on VonC's comment, I took a look at this question and did something like:

git svn clone -A ~/.git/svn.authors http://svn/branches/foo svn-foo
git clone git@git:blah/foo.git new-foo
cd new-foo
git pull ../svn-foo :old-foo
Community
  • 1
  • 1
magneticMonster
  • 2,373
  • 6
  • 30
  • 46