Migrating SVN to Git Version Control System


This section gives an overview about how to migrate SVN to Git version control system. 

Prerequisites

Before migrating, ensure that that you meet the following requirement:

  • You must be Repository Administrator in order to migrate SVN repository to Git.
  • You must install SubGit plugin on Bitbucket server.
  • You must have access to SVN Version Control on HTTP/HTTPS.

Steps to create Git Repository

  1. Open the Bitbucket homepage and click Projects. Click here for more details.



  2. Select Create project to create a project. 



  3. Provide the Project name and Description. Project key is based on Project name.
  4. Click Create Project.
  5. Go to Project page and select the project which you have created.
  6. On Project page, click Create repository. 



  7. Provide the repository name and click Create repository.



  8. Select the Repository which you have created and click on SVN Mirror.



  9. On SVN Mirror page, enter the Repository URL in URL box of Subversion Project URL.

     

  10. Clear the checkbox of Subversion Credentials. By default, checkbox is selected. 



  11. Select the Username and Password from the drop-down list of Authenticate With.
  12. Enter the credentials and click Test Connection to verify the details.
  13. Select the Single Directory Transiation from Subversion Project Layout. This will translate Project URL to the single Git branch.



  14. Specify the default e-mail domain for authors mapping and click Continue.



  15. Click Import to start the import process. It may take time depending on the size of SVN repository and you connection to SVN server.
  16. To verify the migration, click Project and it will reflect the migrated Repositories.