How can I "delete" a file which is already in the SVN repository without deleting it from my file system?
Tortoise or Command Line instructions welcome.
Thank you.
How can I "delete" a file which is already in the SVN repository without deleting it from my file system?
Tortoise or Command Line instructions welcome.
Thank you.
It would work but I'm hoping for something nicer.
In Tortoise, you can also Shift+Right-click to get a menu that includes "Delete (keep local)".
If you want to delete an item from the repository, but keep it locally as an unversioned file/folder, use Extended Context Menu → Delete (keep local). You have to hold the Shift key while right clicking on the item in the explorer list pane (right pane) in order to see this in the extended context menu.
Delete the file from the remote repository:
svn delete http://svn.yourdomain.com/path/to/file.ext
Rename your file, commit the changes including the "deleted" file,
don't include the new (renamed) file.
Rename your file back.
It's retarded that I need reputation to comment but not to provide an answer, so I'm writing my "comment" to the second best answer from Philhag. It has 10 ups, and is completely incorrect. There is no --keep-local option for svn delete. Check any language definition or the redbook. It doesn't exist (at least in the standard implementation).
If you're using the cmd line, MrGrieves and Avram's response is the correct one. I would give them "ups" but again, Stackoverflow doesn't allow me to with my current rep.
Rename your file, commit the changes including the "deleted" file, don't include the new (renamed) file. Rename your file back.
that works, but the icons still indicate they are in the repository. it seems, sometimes i'm lucky using tortoise's clean up command to also clean up the icons. anybody has a different idea?