Remove added file from Subversion but not Local copy

svntortoisesvn

Lets say I commited a new .cs file. Boss says roll it back but I don't want to loose that file locally. If I to a revert back to revision on that file in the revision that I checked this file in at, will it delete it from my local copy? what happens exactly?

Best Answer

TortoiseSVN does delete the file locally if you choose the Tortoise Delete command. To prevent this, you can run svn delete filename --keep-local at the command line.

Or, as Oskar comments below, you can Shift-right-click on the file in your working copy and select Delete (keep local).

This will queue up the deletion to happen on your next commit, along with any other changes you may make.