批量删除.svn文件残留

svn隐藏文件,在linux下面每个文件夹下面都有隐藏文件夹.svn,但是在win上面只有在项目的下面有一个,其他文件夹下面是没有的。有的时候是直接从linux系统上面copy下来,而不是checkout下面的。所有就需要清除这个

下面是一个批处理文件脚本。可以直接清除这些文件!

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

把上面文件保存为一个bat 文件。直接在项目目录下面运行。会自动帮你删除项目下面的.svn文件夹!

相关文章

已有 7 条评论
  1. Yu

    宣传下git,我大git不管哪里都是只有根目录下有个工作树,而且小多了

    Yu 回复
  2. Soar、毅

    模板很简洁~

    Soar、毅 回复
    1. 枫叶红秋雨

      @Soar、毅

      别人弄的拿来改改

      枫叶红秋雨 回复
  3. louis vuitton guy wallets

    If points do not transfer they do not make sounds," added Doug. Powerhouse deliberately overbuilds their coaches and numerous models integrate a second chassis to allow for slide out mechanisms, tanks and wiring. This kind of heavy duty construction is made particularly to stop factors shaking loose - a problem widespread to a lot of RV's - and this really is exactly where the load carrying ability from the class 8 chassis honestly arrives into its personal, "weight is not a factor鈥e do not worry about fat," stated Doug.

    louis vuitton guy wallets 回复
  4. oakley sunglasses deals verizon

    Frankly speaking, I utilized to carry a prejudice against Coach. The reason is uncomplicated but ridicule. It truly is proven in 1941, over a century following the start of one other luxurious brand Herm猫s, however it takes the equivalent emblem..

    oakley sunglasses deals verizon 回复
  5. 黎健雄

    咦!新模板啊。不错啊。

    黎健雄 回复
    1. 枫叶红秋雨

      @黎健雄

      别人弄的。还不错

      枫叶红秋雨 回复
发表新评论