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
No comments:
Post a Comment