I'm migrating an SVN repository over to Git. The git-svn command doesn't handle the branches and tags properly but I stumbled across a tool called svn2git which seems to resolve this (https://github.com/nirvdrum/svn2git).
I've tried setting up this tool to work on Windows but I've not had much success.
I started off by copying the svn2git installation to C:\svn2git and downloading Ruby for Windows (http://rubyinstaller.org/) and saved it at C:\Ruby193.
Running svn2git came back with
/bin/env: ruby: No such file or directory
I then copied Ruby's bin and lib folders to svn2git's bin and lib folders respectively.
Running the svn2git then came back with
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>'
Does anyone know how to get this working on Windows environment? Thanks
Obviously, rubygems.rb
is missing. Install it as documented here:
https://rubygems.org/pages/download
Then, install svn2git
as instructed here:
https://github.com/nirvdrum/svn2git
After that, everything shall be fine.
I'd suggest you to try SubGit tool. It does translate Subversion tags as tags and works well on Windows (requires Java 5 or newer). SubGit is ready to use. You may get latest build at download page and read documentation on the web site.
Originally in 2012 early SubGit versions required local access to Subversion repository (over file system) but later on (by 2015) on network access to subversion was added.
Disclaimer: I'm SubGit developer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With