How can I delete all unversioned/ignored files/folders in my working copy?

前端 未结 12 1944
忘掉有多难
忘掉有多难 2020-11-28 19:06

If I have a working copy of a Subversion repository, is there a way to delete all unversioned or ignored files in that working copy with a single command or tool? Essential

12条回答
  •  旧时难觅i
    2020-11-28 19:53

    This is similar to other answers, but actually gets ignored files (note the 'I' in the REs):

     rm -rf `svn status --no-ignore | grep '^[\?I]' | sed 's/^[\?I]//'`
    

提交回复
热议问题