1.在桌面新建一个cleanUp.bat 这样的运行文件
2.将下面的代码复制进去。
@echo off
rem create by sunhao(sunhao.java@gmail.com)
rem crazy coder
rem -- 这里写你的仓库路径
set REPOSITORY_PATH=D:\Repositories
rem -- 正在搜索...
for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do (
del /s /q %%i
)
rem 搜索完毕
pause
3.修改仓库路径保存,在双击运行cleanUp.bat就可以了。