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

前端 未结 12 1906
忘掉有多难
忘掉有多难 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:55

    Using TortoiseSVN:

    1. Right-Click on the root of the working copy and select TortoiseSVN -> "check for modifications"
    2. Select "Show ignored files"
    3. Sort by "Text status" column
    4. scroll to the "non-versioned" files, now all grouped together; select them all and right-click -> delete
    5. scroll to the "ignored" files, now all grouped together; select them all and right-click -> delete

    Not really a nice and clean solution, but the fastest way I know of (on Windows).

    Thanks to pkh for the tip with the ignored files.

提交回复
热议问题