1.安装“TortoiseSVN-1.7.15.25753-x64-svn-1.7.18.msi”。
2.“运行”->“cmd”->输入“svn help”->出现用说明代表正常,提示“‘svn’不是内部或外部命令”请看第三步。
3.
问题现象:CMD执行SVN命令提示“不是内部或外部命令”。
问题原因:因为Windows安装SVN的时候默认是不安装“svn command line”的。
问题处理:重新打开SVN的安装EXE,选择modify,将“command line client tools”允许安装,然后next继续安装。
问题注意:SVN版本记得要相同的哦,如果版本不同,出错了,别怪我哦。
4.新建一个TXT,写入以下代码,另存为一个BAT文件。
@echo on
set svnroot="D:A1.GMS"
set svngaea="ControlsGAEAResource"
set svngrand="ControlsGrandResource"
set svngms="GMS"
set svngmsgcl="GMSGCL"
set svngmsggjggc="GMSGGJGGC"
set svngmsggjggj="GMSGGJGGJ"
set svngmsgqiggc="GMSGQIGGC"
set svngmsgqigqi="GMSGQIGQI"
set svnshare="Share"
set svngddi="GDDI"
d:
cd %svnroot%%svngaea%
svn update
cd %svnroot%%svngrand%
svn update
cd %svnroot%%svngms%
svn update
cd %svnroot%%svngmsgcl%
svn update
cd %svnroot%%svngmsggjggc%
svn update
cd %svnroot%%svngmsggjggj%
svn update
cd %svnroot%%svngmsgqiggc%
svn update
cd %svnroot%%svngmsgqigqi%
svn update
cd %svnroot%%svnshare%
svn update
cd %svnroot%%svngddi%
svn update
pause
::exit
5.放入启动项中,电脑下次启动时,就会自动更新代码了。