I have a checkout from an svn repository, the host of which I no longer have access to. I would like to import this codebase into a new git repository, but I haven't been able to figure out how to import the history rather than just add the files.

Is it possible to import this history from an svn checkout into a new git repository, and if so how would I do this?

  • You can use git-svn to do this. – wyz Dec 6 '11 at 2:05

Your svn checkout has none of the history locally, that's located on the SVN server. Without access to the server, all you've got is the versions of the files in your checkout.

  • This is what I was afraid of. Thanks for this. – Caleb Hearth Dec 7 '11 at 5:40
  • I'm not sure that I could get that, but if I could what would a 'dump' entail (more specifically, what are the commands to get one)? Related: why is it that svn checkouts do not include the history? Or am I just biased because I'm using dvcs? – Caleb Hearth Dec 7 '11 at 18:08
  • I know it isn't a DVCS, I was referring to my use of git, not to my (prior) use of svn. Thanks for your help! – Caleb Hearth Dec 7 '11 at 22:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.