Error when trying to use svn2git on Windows

I am trying to import a svn repository into git on Windows 7. I have Ruby/Gems/svn2git installed, but when I run this command:

svn2git http://svn.server/path

I get the following error:

  • How to show log with HEAD index
  • git push merge error, but git pull is already up-to-date. Tried reclone, same problem
  • How do I add an existing Solution to GitHub from Visual Studio 2013
  • Git 'pack-objects died of signal 13' when pushing to origin
  • Git: How do I remove files listed in git status -s with “??”, these are files I added to local repo?
  • Renaming files in Git Annex with names too long to check out on the current filesystem
  • C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.0.0/lib/svn2git/migration.rb:226:i
    n `popen': No such file or directory - git svn init --no-metadata --trunk=trunk
    --tags=tags --branches=branches http://svn.server/path (Errno::ENO
    ENT)
    

    I don’t know what this error means. All files are in the correct place as far as I can tell, and copying the repository to my local system doesn’t work. Any help is appreciated. Thanks!

    EDIT: My SVN repository has the default trunk/branch structure.

  • Why is gitk not showing my local branch?
  • Is there a better way to review your own changes instead of “git diff”
  • Heroku Java app crashing locally but not on the web
  • How do you view a different branch of your GitHub Pages?
  • Rename folder in Git. All branches and all revisions
  • GIT Workflow for a cloned GitHub Repo
  • One Solution collect form web for “Error when trying to use svn2git on Windows”

    Svn2Git documentation states that depends on git-core (msysgit in windows) and git-svn, since the error is related to the “git svn” command, i guess you’ll have to install it and make it available in your PATH.

    Check this other StackOverflow question on how to install both git-core and git-svn.

    Git Baby is a git and github fan, let's start git clone.