SVN to Git Migration

In the middle of migrating from SVN to BitBucket (git). I'm struggling with speeds from the SVN server right now, and I'm wondering if something like this might be possible:

  • svnadmin dump repo
  • Import the SVN repo to my laptop
  • git svn clone ....
  • modify the .git/config to change the SVN URL back to the original server
  • rebase to get new changes and keep in sync

I can't really think of a reason that it wouldn't work ....

1 answer

1 accepted

Hi Kirk,

You can definitely do that. I would recommend testing it on a small repository just to confirm, but I've personally done that and it works fine.



I decided to just try -- didn't see any reason it wouldn't work. It is much faster to do the initial svn clone like this. Thanks!

Glad to hear it. I'm assuming you're runing git-svn? The other thing to look at is Subgit which is definitely faster (although doesn't handle all of the weird edge cases in badly formed SVN repositories)

Oh man. I'm riddled with badly formed SVN repositories. It's been a bloody mess, but the end is in sight I think. In the end I'm losing some of my branch history, but it is what it is.

Yeah I've been there before, you just want it to be over (for me it was Clearcase).

Good luck. :)

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

635 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot