简体   繁体   English

Windows 的命令行 svn?

[英]Command-line svn for Windows?

Is there a command-line based version of svn for Windows?是否有适用于 Windows 的基于命令行的svn版本? I know I can get TortoiseSVN, but that just doesn't work for me.我知道我可以得到 TortoiseSVN,但这对我不起作用。

TortoiseSVN contains a console svn client, but by default the corresponding option is not enabled during installation. TortoiseSVN包含一个控制台 svn 客户端,但默认情况下在安装过程中没有启用相应的选项。

The svn.exe executable is not standalone and it depends on some other files 1 in the distribution but this should not be a problem in most cases. svn.exe可执行文件不是独立的,它依赖于发行版中的其他一些文件1但在大多数情况下这应该不是问题。

Once installed you might need to add the folder containing svn.exe to the system PATH as described here so that it is available in your console.安装后,您可能需要按照此处所述将包含svn.exe的文件夹添加到系统PATH以便它在您的控制台中可用。 To check if it was already added by the installer open a new console and type echo %PATH% .要检查它是否已由安装程序添加,请打开一个控制台并输入echo %PATH% Use set on its own to see all environmental variables.单独使用set来查看所有环境变量。

TortoiseSVN 安装向导

1 for the svn* executables in TortoiseSVN 1.14.1, the following files are required on the PATH : 1对于 TortoiseSVN 1.14.1 中的svn*可执行文件, PATH上需要以下文件:

intl3_tsvn.dll
libaprutil_tsvn.dll
libapr_tsvn.dll
libsasl.dll
libsvn_tsvn.dll

The subversion client itself is available on Windows. Subversion 客户端本身在 Windows 上可用。 See here for certified binaries from CollabNet.有关来自 CollabNet 的认证二进制文件,请参见此处

CollabNet Subversion Command-Line Client v1.6.9 (for Windows) CollabNet Subversion 命令行客户端 v1.6.9(适用于 Windows)

This installer only includes the command-line client and an auto-update component.此安装程序仅包括命令行客户端和自动更新组件。

Even though I can't understand it's possible not to love Tortoise!即使我无法理解,也不可能不乌龟! :) :)

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版本

我用过sliksvn ,它对我很有用

cygwin is another option. cygwin是另一种选择。 It has a port of svn .它有一个svn端口。

You can get SVN command-line tools with TortoiseSVN 1.7 or later or get a 6.5mb standalone package from VisualSVN .您可以使用TortoiseSVN 1.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 .检查Apache Subversion“二进制包”页面也很有意义。 xD xD

You can use Apache Subversion.您可以使用 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.安装后,您必须重新启动 pc 才能从命令行使用 svn。

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

正如 Damian 在此处指出的,Windows Vista 64 位TortoiseSVN 的命令行颠覆客户端具有在安装过程中默认未选中的命令行工具。

VisualSVN for Windows has a command-line-only executable (as well Visual Studio plugins).适用于 Windows 的 VisualSVN具有仅限命令行的可执行文件(以及 Visual Studio 插件)。 See https://www.visualsvn.com/downloads/https://www.visualsvn.com/downloads/

It is completely portable, so no installation is necessary.它是完全便携的,因此无需安装。

Install MSYS2 , it has svn in its repository (besides lots of other Unix goodies).安装MSYS2 ,它的存储库中有 svn (除了许多其他 Unix 好东西)。 MSYS2 installs without Windows Admin rights. 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/

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

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