Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Migrate SVN to GIT

David Lopes January 23, 2014

Hi,

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?

Thanks

4 answers

1 accepted

1 vote
Answer accepted
Stefan Saasen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2014

Hi David,

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

Hope this helps.

Cheers,

Stefan

Digdarshan Bhatt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2017

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.

error.PNG

0 votes
David Lopes January 29, 2014

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.

0 votes
David Lopes January 23, 2014

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

0 votes
Paolo Furini
Contributor
January 23, 2014

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

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events