Remove file from SVN repository without deleting local copy

svntortoisesvn

How can I "delete" a file which is already in the SVN repository without deleting it from my file system?

TortoiseSVN or command line instructions are welcome.

The following works, but I am hoping for something nicer:

  1. Copy the file to some other location outside the repository.
  2. SVN Delete the file.
  3. Commit
  4. Copy the files back and make sure to ignore them on future commits.

Best Answer

svn delete --keep-local the_file