简体   繁体   中英

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.

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.

What do I need to do here?

When you install TortoiseSVN you are given the option to install the Subversion binaries as well:

TortoiseSVN自定义安装

Once you do that, you will see svnsync.exe in the installation folder:

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变量中的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 .)

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

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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