Wednesday, August 17, 2011

Migrating from svn to git

by sandipransing 0 comments
Migrating from svn to git
1. Install git-svn
sudo apt-get install git-svn 2. Clone svn repositoy git svn clone -s svn://server/project_myt/trunk proj To add svn users and git users mapping
Create author-file
#vi authorsfile sandip = sandipransing amit = amitk root = sandipransing
git svn --author-file=authorfile clone -s svn://server/project_myt/trunk proj 3. Add git repository url
cd proj git remote add git@github.com:USERNAME/project.git 4. Push repository to git
git push origin master To do svn pull for latest changes
git svn rebase
Read More…

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter