Automatically remove Subversion unversioned files

前端 未结 30 3148
感情败类
感情败类 2020-11-28 18:54

Does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build

30条回答
  •  被撕碎了的回忆
    2020-11-28 19:20

    svn status --no-ignore | awk '/^[I\?]/ {system("echo rm -r " $2)}'
    

    remove the echo if that's sure what you want to do.

提交回复
热议问题