Reputation: 8152
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:
Upvotes: 223
Views: 112585
Reputation: 4259
Rename your file, commit the changes including the "deleted" file, and don't include the new (renamed) file.
Rename your file back.
Upvotes: 1
Reputation: 43158
In TortoiseSVN, you can also Shift + right-click to get a menu that includes "Delete (keep local)".
Upvotes: 65
Reputation: 28563
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 completely:
right mouse click → Menu → Delete
Delete & Keep local:
Shift + right mouse click → Menu → Delete
Upvotes: 108
Reputation: 33
When you want to remove one xxx.java file from SVN:
Upvotes: -2