It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 votes

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
Community showcase
Published in Training & Certification

Atlassian University Live: Conquering Jira Permissions

Atlassian University Live webinars provide you and your teams with the chance to strengthen your Atlassian product skills, and learn directly from Atlassian experts. Our next webinar is titled Conq...

202 views 4 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you