A quick way to get svn2git working directly with the least commands
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.rvmrc
Gemfile
README.md
authors.txt

README.md

using-svn2git

A quick way to get svn2git working directly with the least commands, by having the needed dependecies in a Gemfile

  1. make sure you have standard repo structure (check https://github.com/nirvdrum/svn2git if you have another strucutre)
  2. have your authors file ready if needed
  3. bundle install
  4. svn2git --authors ~/authors.txt

standard repo strucutre

trunk
  ...
branches
  1.x
  2.x
tags
  1.0.0
  1.0.1
  1.0.2
  1.1.0
  2.0.0

Quick steps

make sure you have git, ruby and rubygems installed

$ sudo apt-get install git-svn
$ git clone https://github.com/modsaid/using-svn2git.git
$ cd using-svn2git
$ bundle install
$ mkdir ../new_repo && cd ../new_repo
$ svn2git http://svn.example.com/path/to/repo --authors ~/authors.txt -v --username YOUR_SVN_USER  
$ git remote add origin READ_WRITE_GIT_REPO
$ git pull origin master
$ git push origin master
# Then push the branches/tags u desire. or push all using:
$ git push --all

Credits