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.

Cheers,

Charles

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)

http://subgit.com/

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,569 views 26 12
Join discussion

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