Windows 的命令行 svn?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2341134/
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
Command-line svn for Windows?
提问by Pieter
Is there a command-line based version of svn
for Windows? I know I can get TortoiseSVN, but that just doesn't work for me.
是否有基于命令行的svn
Windows版本?我知道我可以得到 TortoiseSVN,但这对我不起作用。
回答by ccpizza
Newer versions of TortoiseSVNcontain a console svn client, but by default the corresponding option is not checked.
较新版本的TortoiseSVN包含一个控制台 svn 客户端,但默认情况下不选中相应的选项。
The svn.exe
executable is not standalone and it depends on some other files in the distribution but this should not be a problem in most cases.
该svn.exe
可执行文件是不是独立的,它依赖于分布的一些其他文件,但这不应该是在大多数情况下的一个问题。
Once installed you might need to add the folder containing svn.exe
to the system PATH
as described hereso that it is available in your console. To check if it was already added by the installer open a newconsole and type echo %PATH%
. Use set
on its own to see all environmental variables.
安装后,您可能需要按照此处所述将包含的文件夹添加svn.exe
到系统PATH
中,以便它在您的控制台中可用。要检查它是否已由安装程序添加,请打开一个新控制台并键入echo %PATH%
. 单独使用set
以查看所有环境变量。
回答by Pekka
The subversion client itself is available on Windows. See herefor certified binaries from CollabNet.
Subversion 客户端本身在 Windows 上可用。有关来自 CollabNet 的认证二进制文件,请参见此处。
CollabNet Subversion Command-Line Client v1.6.9 (for Windows)
This installer only includes the command-line client and an auto-update component.
CollabNet Subversion 命令行客户端 v1.6.9(适用于 Windows)
此安装程序仅包括命令行客户端和自动更新组件。
Even though I can't understand it's possible not to loveTortoise! :)
即使我无法理解,也不可能不爱乌龟!:)
Note:
The above link is for newer products - you can find version 1.11.1 through 1.7.19 at Older Subversion Releases
注意:
以上链接适用于较新的产品 - 您可以在Older Subversion Releases 中找到 1.11.1 到 1.7.19版本
回答by Dan Andreatta
cygwin
is another option. It has a port of svn
.
cygwin
是另一种选择。它有一个svn
.
回答by bahrep
You can get SVN command-line tools with TortoiseSVN1.7 or later or get a 6.5mb standalone package from VisualSVN.
您可以使用TortoiseSVN1.7 或更高版本获取 SVN 命令行工具,或者从VisualSVN获取 6.5mb 独立包。
Starting with TortoiseSVN 1.7, its installer provides you with an option to install the command-line tools.
从 TortoiseSVN 1.7 开始,它的安装程序为您提供了安装命令行工具的选项。
It also makes sense to check the Apache Subversion "Binary Packages" page. xD
检查Apache Subversion“二进制包”页面也很有意义。xD
回答by kaupov
As Damian noted here Command line subversion client for Windows Vista 64bitsTortoiseSVN has command line tools that are unchecked by default during installation.
正如 Damian 在此处指出的,Windows Vista 64 位TortoiseSVN 的命令行颠覆客户端具有在安装过程中默认未选中的命令行工具。
回答by hkaraoglu
回答by user2418306
回答by weberjn
Install MSYS2, it has svn in its repository (besides lots of other Unix goodies). MSYS2 installs without Windows Admin rights.
安装MSYS2,它的存储库中有 svn (除了许多其他 Unix 好东西)。MSYS2 在没有 Windows 管理员权限的情况下安装。
$ pacman -S svn
The tools can be used from cmd, too:
这些工具也可以从 cmd 使用:
C:\>C:\msys64\usr\bin\svn.exe co http://somehost/somerepo/
回答by cowlinator
VisualSVN for Windowshas a command-line-only executable (as well Visual Studio plugins). See https://www.visualsvn.com/downloads/
VisualSVN for Windows有一个仅限命令行的可执行文件(以及 Visual Studio 插件)。见https://www.visualsvn.com/downloads/
It is completely portable, so no installation is necessary.
它是完全便携的,因此无需安装。