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

1 vote
Answer 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 Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

195 views 0 12
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