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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 07:08:53  来源:igfitidea点击:

Command-line svn for Windows?

windowssvncommand-line-interface

提问by Pieter

Is there a command-line based version of svnfor Windows? I know I can get TortoiseSVN, but that just doesn't work for me.

是否有基于命令行的svnWindows版本?我知道我可以得到 TortoiseSVN,但这对我不起作用。

回答by ccpizza

Newer versions of TortoiseSVNcontain a console svn client, but by default the corresponding option is not checked.

较新版本的TortoiseSVN包含一个控制台 svn 客户端,但默认情况下不选中相应的选项。

The svn.exeexecutable 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.exeto the system PATHas 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 seton its own to see all environmental variables.

安装后,您可能需要按照此处所述将包含的文件夹添加svn.exe到系统PATH以便它在您的控制台中可用。要检查它是否已由安装程序添加,请打开一个控制台并键入echo %PATH%. 单独使用set以查看所有环境变量。

TortoiseSVN install wizard

TortoiseSVN 安装向导

回答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 klennepette

I've used sliksvnand it works great for me

我用过sliksvn,它对我很有用

回答by Dan Andreatta

cygwinis 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

You can use Apache Subversion. It is owner of subversion . You can download from here. After install it, you have to restart pc to use svn from command line.

您可以使用 Apache Subversion。它是颠覆的所有者。你可以从这里下载。安装后,您必须重新启动 pc 才能从命令行使用 svn。

回答by user2418306

If you have Windows 10 you can use Bash on Ubuntu on Windowsto installsubversion.

如果你有 Windows 10,你可以在 Windows 上的 Ubuntu 上使用Bash安装subversion。

回答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.

它是完全便携的,因此无需安装。