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

前端 未结 12 1904
忘掉有多难
忘掉有多难 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条回答
  •  独厮守ぢ
    2020-11-28 19:51

    With powershell:

    (svn status --no-ignore) -match '[?]' -replace '^.\s+' | rm
    

    From command line:

    powershell -Command "&{(svn status --no-ignore) -match '[?]' -replace '^.\s+' | rm}"
    

提交回复
热议问题