Migrate SVN to GIT


I have a project under SVN and now I want to migrate it to GIT. All tutoriais I've found didn't work, so now I want to try your application to see if it works.

Is there any tutorial that I can follow?


4 answers

1 accepted

1 vote
Accepted answer

Hi David,

We've got a more general migration guide here: https://www.atlassian.com/git/migration

Hope this helps.



hello Stefan i am trying to do with the guide but i am getting error in command prompt.

what should i do.please suggest me.


See this article on BitBucket (alternative to GitHub by Atlassian, it offers free private repos):


You have to adapt it, since it covers the migration from Atlassian OnDemand svn repo and BitBucket team account, and I never tried it.

Googling about SourceTree and SVN I found this: http://www.third-helix.com/2013/09/using-sourcetree-with-subversion-hint-dont/

It's dated Semptember 2013, and I suspect some or all the issues are still there in the latest version, but I don't know for sure.

In the past I migrated some old repos simply creating from scratch a new Git repo, and doing an initial commit of the current source tree, creating gitignore and gitattributes files, and so on. If I had several branches, I manually recreated the active branches in Git. Say goodbye to the history.

Pay attention to binary files: never store large binary files in git repos. If you have a big svn repo full of large binary files, don't migrate to git.

Good luck

Thanks. I will have a look at it and will report later.

So, I've followed the tutorial that Stefan Saasen posted and after some tweaking I was successfull.

The repository I was migrating didn't follow any specific standard with the "trunk", "branches" and "tags" directories. It had no branches history and consisted only in a root folder and subfolders along with hundreds of commits.

What I did was point the "trunk" to the root of the repository, to "fake" the master branch. This apparently worked pretty well. :)

Thanks both.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

655 views 5 9
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