简体   繁体   English

通过命令行在Windows中使用和运行Tortoise svnsync

[英]Using and running Tortoise svnsync in Windows via command line

I have a local repository and I have just signed up to unfuddle and want to sync my local repository to the new one I have created on there. 我有一个本地存储库,我刚刚注册了unfuddle并希望将我的本地存储库同步到我在那里创建的新存储库。

I was told to run the following command: 我被告知要运行以下命令:

svnsync init --username USERNAME http://username.unfuddle.com/svn/username-rep http://SOURCE_REPO_URL

Firstly, I assume I can remove the username stuff if the source repository doesn't require authentication? 首先,我假设如果源存储库不需要身份验证,我可以删除用户名的东西吗?

Secondly, when I run that command my system doesn't recognize it. 其次,当我运行该命令时,我的系统无法识别它。 I assumed svnsync needed to be added somewhere in Windows so that it could be run via it's name only (think the correct term is an environment variable )?, but not only do I not know how to do that I don't know what program to add...... I cannot find any svnsync.exe or anything locate din my TortoiseSVN folder. 我假设需要在Windows的某处添加svnsync ,以便它只能通过它的名称运行(认为正确的术语是environment variable )?但不仅我不知道该怎么做我不知道是什么程序添加......我找不到任何svnsync.exe或任何找到我的TortoiseSVN文件夹的东西。

What do I need to do here? 我需要做什么?

When you install TortoiseSVN you are given the option to install the Subversion binaries as well: 安装TortoiseSVN时,您还可以选择安装Subversion二进制文件:

TortoiseSVN自定义安装

Once you do that, you will see svnsync.exe in the installation folder: 完成后,您将在安装文件夹中看到svnsync.exe

TortoiseSVN安装的SVN二进制文件的位置

As long as you have C:\\Program Files\\TortoiseSVN\\bin in your PATH variable, you will be able to call svnsync.exe from the command-line: 只要在PATH变量中有C:\\Program Files\\TortoiseSVN\\bin ,就可以从命令行调用svnsync.exe

PATH变量中的TortoiseSVN

(You can view your PATH variable thus (on Windows 7): Start -> right-click Computer -> Properties -> Advanced system settings -> Environment variables... . DO NOT overwrite whatever is there - simply append the path to TortoiseSVN if it isn't already there. More info here .) (您可以查看您的PATH变量(在Windows 7上): 开始 -> 右键单击计算机 -> 属性 -> 高级系统设置 -> 环境变量.... 不要覆盖那里的任何内容 - 只需将路径附加到TortoiseSVN如果它还没有。 更多信息在这里 。)

svnsync从命令行中的C:\\ path开始工作

Hope this helps. 希望这可以帮助。

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

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