简体   繁体   English

Windows上的git-svn。在哪里获取二进制文件?

[英]git-svn on Windows. Where to get binaries?

I want to use git as a local repository against a remote SVN repository. 我想使用git作为远程SVN存储库的本地存储库。 I installed version 1.6.0.2 from http://code.google.com/p/msysgit/downloads/list . 我从http://code.google.com/p/msysgit/downloads/list安装了1.6.0.2版。

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. 它们都没有在我的安装中可用,我找不到单独的Windows二进制文件下载。

I'm currenty using the MSYS build. 我现在正在使用MSYS构建。 Must I switch to cygwin? 我必须切换到cygwin吗?

git-svn is installed in the latest version of msysgit. git-svn安装在最新版本的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在C:\\ Program Files \\ git \\ libexec中显示为“git-svn”,svn实际上被称为git可执行文件的参数,因此:

git svn clone http://example.com/svn/repo/

This earlier version has working git-svn. 这个早期版本有git-svn。 I thought that git-svn in the current version that you installed was fixed, but maybe not. 我认为你安装的当前版本中的git-svn是固定的,但也许不是。 Git-svn definitely did not work in the windows version of Git 1.5.6.1. Git-svn肯定不适用于Git 1.5.6.1的Windows版本。

安装cygwin并在Devel类别下选择git-svn包。

The git svn command is written in Perl and requires the Subversion Perl libraries. git svn命令是用Perl编写的,需要Subversion Perl库。 The existence of the svn command line command is insufficient for git-svn . 对于git-svnsvn命令行命令的存在是不够的。

I haven't used git svn on Windows (only on Unix and Mac OS X), so I can't really provide more detail, but hopefully this should point you in the right direction. 我没有在Windows上使用git svn (仅限Unix和Mac OS X),所以我无法真正提供更多细节,但希望这应该指向正确的方向。

I don't know git, but I know that for Mercurial, for example, you have to have SVN installed to convert from SVN to Mercurial (and back). 我不知道git,但我知道,例如,对于Mercurial,您必须安装SVN才能从SVN转换为Mercurial(并返回)。 Perhaps it is the same for git? 对git来说也许是一样的?

SVN is quite big by itself, so perhaps concurrent systems won't want to distribute it with their software, bloating the download. SVN本身就相当大,所以并发系统可能不希望用它们的软件来分发它,从而使下载膨胀。

I used the command line SVN client from Slik SVN , not too big and installing cleanly. 我使用了Slik SVN的命令行SVN客户端,不是太大,安装干净。

Of course, wait for more informed answer, or search the Web for confirmation of my information... :-) Although it doesn't hurt to have an SVN client, since lot of projects use it. 当然,等待更明智的答案,或者在网上搜索确认我的信息... :-)虽然拥有SVN客户端并没有什么坏处,但很多项目都使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM