Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete files from SVN that have already been deleted from the FS?

Using TortoiseSVN on Windows, how do I delete files from the repository that have already been deleted on the file system? I would expect them to show up as "missing" or "deleted" on my next commit, but that doesn't seem to be the case.

On Linux/Mac, I just run this command:

svn st | grep ^! | cut -b7- | xargs svn delete

-Chris

like image 539
Chris Miller Avatar asked Jul 06 '09 04:07

Chris Miller


People also ask

How remove deleted file from svn?

Deleting files and foldersUse TortoiseSVN → Delete to remove files or folders from Subversion. When you TortoiseSVN → Delete a file or folder, it is removed from your working copy immediately as well as being marked for deletion in the repository on next commit.

What will happen if some versioned file or directory is removed from working copy by svn delete command?

Using svn to delete a file from your working copy deletes your local copy of the file, but it merely schedules the file to be deleted from the repository. When you commit, the file is deleted in the repository.


1 Answers

You have to use "Tortoise svn -> delete" to delete the file.

If you have deleted directly by mistake, do an svn update to get the file back and then do "tortoise svn->delete"

:-)

like image 101
Indhu Bharathi Avatar answered Nov 15 '22 22:11

Indhu Bharathi