windows下 svn删除与版本库的联系
当项目和版本库有联系时每个目录下都会有.svn批量删除时可将下列代码复制
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command] @="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command] @="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \
保存到记事本中将文件后缀改为.reg 双击会将文件导入注册表。右键点击会出现 Delete SVN Folders 即可批量删除.svn文件
如果不想要右键出现 Delete SVN Folders 打开注册表(windows+R 输入regedit) 将[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]删除即可。
在Dos窗口中运行如下命令:
for /r 项目的路径 %i in (.svn) do rd /s /q %i
希望广大博友给予建议和指导