清理.git文件

@echo on
color 2f
mode con: cols=80 lines=25
@REM
@echo 正在清理git文件,请稍候......
@rem 循环删除当前目录及子目录下所有的SVN文件
@rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn"
@for /r . %%a in (.) do @if exist "%%a\.git" rd /s /q "%%a\.git"
@echo 清理完毕!!!
@pause

posted @ 2017-03-23 16:44  杉枫  阅读(1577)  评论(0编辑  收藏  举报