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

convert SVN repository to GIT repository

How do I convert an SVN Repository to a GIT repository?

2 answers

1 accepted

1 vote
Answer accepted

These are my notes that I have used over and over, hope it helps you. My SVN repos were in unfuddle but this would apply to any svn repos

  1. Create a GIT repository wherever you want (I use bitbucket)
  2. git svn clone "https://yoursvnrepo" newgitrepo
    1. you will also be prompted for a username and password. Not sure about the first one, but the second one it asks you for is your unfuddle credentials for the svn repo
    2. This step may take a long time if you have a big repository. Like hours even.
  3. cd newgitrepo
  4. git remote add origin git@bitbucket.org:username/newgitrepo.git
    1. This is the repo created in step 1 above. Could be github, bitbucket or wherever else
  5. git push origin master
    1. This copies the git repo up to the new git repository
    2. If this is the first time you will have to get the SSH key from your git machine and enter it into your personal settings in unfuddle

Hope this at least gets you started.

You will need to install gitbash or something like that to have those command line utilities. I am on a Windows machine.

There are a few online resources that should help you with this question.

We have a guide from Stefan here:

http://blogs.atlassian.com/2012/01/moving-confluence-from-subversion-to-git/

We have a guide on Bitbucket here:

https://go-dvcs.atlassian.com/display/aod/Migrating+from+Subversion+to+Git+on+Bitbucket

And pointers and snags here:

http://blogs.atlassian.com/2013/01/atlassian-svn-to-git-migration-technical-side/

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Feedback & Announcements

Changes in database support for Server and Data Center products

Hello, Community! My name is Gosia and I'm a Product Manager on Server and Data Center products here at Atlassian. I am reaching out to you to share information about database types ...

146 views 0 5
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