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就可以了。