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

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?

0 vote

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 

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 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Davin Studer
Posted 4 hours ago in Off-topic

Friday fun: What super hero are you?

As a kid I loved reading super hero comic books and the renewed interest these days in super heroes with all the Marvel and DC movies is pretty exciting to me. So, if you're like me today is all abou...

40 views 10 2
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