Migrate SVN to Bitbucket, the easy way

In this blog post I’ll show you how you can transfer/convert/migrate a SubVersion repository to a Git repository hosted on Bitbucket. Most tutorials, including the official one are complex, have many steps to perform and haven’t worked for me. In my case the all failed for different reasons.

Luckily there is a very simple method to perform this migration, for starters you need to install these 2 tools:

  • TortoiseGit
  • Git
  • TortoiseGit is a very decent Git client which you can use after the conversion to perform all the interaction with Git.

The first step is to convert the SVN repository to Git:

  • Create a new folder
  • Right-click –> Git clone:
  • image
  • In the dialog that appears, fill use the SVN URL in the URL field, uncheck “Load Putty Key”,”check “From SVN Repository” and uncheck “Trunk”, “Tags” and “Branches”:


The might a message about an invalid certificate which you can ignore. You might be asked for credentials, if so enter the your SVN credentials. After a while, depending on the size of the repository, the conversion is done and you can close the dialog

The next step is to create the Git repository on Bitbucket:


Fill out the form, click the “Create repository” button. On the next dialog you can see the URL of the repository:


Copy this URL to the clipboard, go back to the folder where you created the clone of the SVN repository, right-click on the folder –> TortoiseGit –> Push


On the dialog that appears click on the “Manage” button:


A new dialog appears, only past the URL in the URL field:


Press “OK” to close the dialog, and press “OK” in the previous dialog. If asked, enter the Bit Bucket credentials, wait a few seconds and you have migrated the SVN repository to Bitbucket.

Comments are closed.