SVN delete --keep-local

Viewed 21318

I'm working on a project where someone has checked in some folders and files that are not suppose to be in the repository and are suppose to be on our local, I try to delete them by the following command and it gives me this error

svn delete filename --keep-local
svn: invalid option: --keep-local
3 Answers

As wcoenen and Dave Markle said, you have an old version that doesn't have the --keep-local option. To be more specific, this option was introduced in version 1.5.

As a workaround:

  1. Copy the files out of your working copy
  2. svn delete
  3. svn commit
  4. Copy them back into the working copy
  5. Add them to svn:ignore so they don't get checked in again!
Related