Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-svn on Windows. Where to get binaries?

Tags:

git

windows

svn

I want to use git as a local repository against a remote SVN repository. I installed version 1.6.0.2 from http://code.google.com/p/msysgit/downloads/list.

According to the documentation synchronization is done via the command

git svn 

or a separate command wrapper called

git-svn 

Neither of them is available in my installation and I could not find a separate download for Windows binaries.

I'm currenty using the MSYS build. Must I switch to cygwin?

like image 631
Dirk Vollmar Avatar asked Dec 08 '08 21:12

Dirk Vollmar


People also ask

Can you use Git and SVN together?

git-svn is a specialized tool for Git users to interact with Git repositories. It works by providing a Git frontend to an SVN backend. With git-svn, you use Git commands on the local repository, so it's just like using normal Git. However, behind the scenes, the relevant SVN commands are sent to the server.

Can we use Tortoisesvn for Git?

You can checkout a git repository but you can't do most of other operations. You can setup tortoise git which provides same interface for Git although the commands are different.

What is SVN repository Git?

git svn is a simple conduit for changesets between Subversion and Git. It provides a bidirectional flow of changes between a Subversion and a Git repository. git svn can track a standard Subversion repository, following the common "trunk/branches/tags" layout, with the --stdlayout option.


2 Answers

git-svn is installed in the latest version of msysgit. However, there's a slight caveat: while git-svn shows up in C:\Program Files\git\libexec as "git-svn", svn is actually called as an argument to the git executable, thus:

git svn clone http://example.com/svn/repo/ 
like image 128
jamandbees Avatar answered Sep 20 '22 20:09

jamandbees


This earlier version has working git-svn. I thought that git-svn in the current version that you installed was fixed, but maybe not. Git-svn definitely did not work in the windows version of Git 1.5.6.1.

like image 22
Paul Avatar answered Sep 19 '22 20:09

Paul