How can i migrate SVN to GIT? Is there any procedure to verify this?

Hi I want to migrate my SVN Repo to GIT Repo. How can i do this? Is there any procedure or tool to verify this migration?

4 answers

This widget could not be displayed.

Assume you already read this https://www.atlassian.com/git/tutorials/migrating-overview/ ?

No procedure to verify it, but i guess if you have some downtime, you could write a bash oneliner that checks commit by commit for the same commit message or so?

This widget could not be displayed.

Hi Pradeep, 

If you are using Bitbucket Cloud, there's a link which allow you to import your repo. Just login on Bitbucket account and go to Repositories -> Import Repository

Cheers, 
Renato 

This widget could not be displayed.

Hi Pradeep,

If you're using Bitbucket Server, consider migrating your SVN projects to Git with SVN Mirror add-on for Bitbucket Server that is capable of importing SVN history and keeping SVN and Git repositories in sync afterwards.

If you're using some other Git hosting solution, try using standalone SubGit tool that supports both import and mirror functionality as well (SVN Mirror add-on is built upon SubGit).

Both SVN Mirror add-on and SubGit are the most advanced tools for migrating SVN repositories to Git:

  • Bi-directional Git-SVN mirror that allows keeping both Git and SVN repositories writable during migration;
  • Automatic SVN history analysis for detecting existing branches and tags;
  • Converting svn:mergeinfo properties into proper merge commits in Git repository;
  • Converting svn:eol-style and svn:mime-type properties into .gitattributes files;
  • Converting svn:ignore into .gitignore files;
  • Many more features.

Regards,
Semyon 

This widget could not be displayed.

Hi All

 Thanks for the solution.

 I have another question?

    - if we use the SVN Mirror add-on in Bitbucket [on cloud], then can I continue to work on Git repo or should I also keep the SVN in Sync with Git repo.

    Can I stop using SVN?   How much time is required for the Migration from SVN to Git - does it migrate all objects?

 regards    

     

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Teamwork

The tools we make for teams? We use them every day at Atlassian to get shit done (and it works).

I’m Jess, a Product Marketer for Jira Software Server and Data Center, and now a huge fan of our products. Read on for a 90 day, new-hire perspective on what it’s like to standardize on the Atlassian...

35 views 0 3
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