Prerequisites
1. You should have git, git-svn and ruby installed. To verify execute below command
sudo apt-get install git-core git-svn ruby
2. Install svn2git using following command.sudo gem install svn2git
Usage:
- Checkout your svn repository to your local machine by executing below command.
- Execute below command to extract the list of sub version committers.
- Run svn2-git utility (Pass the authors-transform.txt file)
Note: If the svn repository is a standard layout of (trunk, branches, tags) at the root level. So doesn't require any addional parameters while using svn2git command.
- Once the above command completes you shoud get a local git repository similar to your svn repository.
- Add remote origin using below command.
- Push master, all the other branches.
git push origin --all
- Push Tags to remote git repository by execuing following command.