Describe Migrating SVN code repositories to Git
This the steps taken to move a SVN repo for the uPortal Java program that helps with load balancing and healthy node detection.
1. Create ~/authors.txt file for all SVN users. For example add entries in SVN to match Git users:
asgrant = Aaron Stuart Grant <[email protected]> indiresh = Lakshmi Maktala <[email protected]>
2. Create Git repo on http://code.oakland.edu i.e. uPortalTester
3. Steps to create local Git repo from SVN repo
- mkdir repo
- cd repo
git svn init http://svnprod.sys.oakland.edu/repo/uportal/prod/uportal4-portlets/uPortalTester --no-metadata
- git config svn.authorsfile ~/authors.txt
- git svn fetch
4. Migrate local Git repo to hosted Git repo (code.oakland.edu)
git remote add origin [email protected]:uportaltester.git
- git push -u origin master
You are done!