Step by step guide on how to migrate your SVN repository with all its history to the Stash, the Atlassian git manager.
Only once :
- add the ssh key
- open a terminal
- create the authors.txt file in ~/Documents/
- git config svn.authorsfile ~/Documents/authors.txt
authors.txt format :
username = Name LastName <email>
example :
gordof = Gordon Flash <gordon.flash@superhero.com>
marcoc = Marco Castigliego <marco.castigliego@superhero.com>
For each project :
For this example I will migrate a project called super-hero-service.
- Tell your team members to not commit on the project during the process.
- Open a terminal
- cd ~
- mkdir migration
- cd migration
- git svn clone svn+ssh://marcoc@svn.superhero.com/com/super/hero/Services/ –trunk=super-hero-service super-hero-service
- go to take a coffee
- cd super-hero-service
- git svn show-ignore (Which outputs everything in the SVN ignore property to the console. Then you can copy this to a new file called .gitignore at the root of your repository.Add and commit the file.)
- go to https://stash.superhero.com/projectsServices and create a repository called super-hero-service
- git remote add origin ssh://git@stash.suoperhero.com:2022/services/super-hero-service.git
- git push -u origin master
| Reference: | Migrate your project from SVN to Git Stash in few steps from our JCG partner Marco Castigliego at the Remove duplication and fix bad names blog. |
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy
Thank you!
We will contact you soon.
👁 Photo of Marco Castigliego
Marco CastigliegoSeptember 10th, 2014Last Updated: September 10th, 2014
Marco CastigliegoSeptember 10th, 2014Last Updated: September 10th, 2014
3 119 1 minute read

This site uses Akismet to reduce spam. Learn how your comment data is processed.
Point 7 in real projects: tell 20 persons that they will not work for at least 24h (e.g svn has 250 000 revisions). :P
Haha true!
Thanks, the article was really useful.
Never did this before and spent only about an hour to complete.