Windows 上的 git-svn。从哪里获得二进制文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/350907/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git-svn on Windows. Where to get binaries?
提问by Dirk Vollmar
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.
我想使用 git 作为针对远程 SVN 存储库的本地存储库。我从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. Must I switch to cygwin?
我目前正在使用 MSYS 版本。我必须切换到 cygwin 吗?
采纳答案by Paul
This earlier versionhas 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.
这个较早的版本可以使用 git-svn。我认为您安装的当前版本中的 git-svn 已修复,但可能没有。Git-svn 在 Windows 版本的 Git 1.5.6.1 中肯定不起作用。
回答by jamandbees
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 安装在最新版本的 msysgit 中。但是,有一点需要注意:虽然 git-svn 在 C:\Program Files\git\libexec 中显示为“git-svn”,但 svn 实际上是作为 git 可执行文件的参数调用的,因此:
git svn clone http://example.com/svn/repo/
回答by Rodrigo B. de Oliveira
回答by Greg Hewgill
The git svn
command is written in Perl and requires the Subversion Perl libraries. The existence of the svn
command line command is insufficient for git-svn
.
该git svn
命令是用 Perl 编写的,需要 Subversion Perl 库。svn
命令行命令的存在是不够的git-svn
。
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.
我没有git svn
在 Windows 上使用过(仅在 Unix 和 Mac OS X 上),所以我无法提供更多细节,但希望这应该为您指明正确的方向。
回答by PhiLho
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). Perhaps it is the same for git?
我不知道 git,但我知道对于 Mercurial,例如,您必须安装 SVN 才能从 SVN 转换为 Mercurial(并返回)。也许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 客户端并没有什么坏处,因为很多项目都使用它。