convert SVN repository to GIT repository

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

2 answers

1 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.

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
Rachel Wright
Published yesterday in Training & Certification

How to Extend your Jira Administrator Certification

...; didn’t   know about Jira email!  For example, did you know Jira will try to send a notification message 10 times?  I didn’t!  As soon as I learned that, I searched for any active...

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