Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo SVN delete ./* --force

I didn't realize svn delete would delete my local copy, I just wanted it out of the repository. Now all my files are gone, and they aren't in the trash bin either. Is there any way I can recover them?


I should clarify, these files never made it into the repository. I was trying to get rid of some old junk in the repository so that I could check these in.

I'm running Ubuntu on an ext3 filesystem. It's okay though.... I managed to redo what I deleted in about 2 hours.

like image 916
mpen Avatar asked Apr 14 '09 02:04

mpen


People also ask

How remove deleted file from SVN?

If you are using TortoiseSVN, just do a Check for Modifications, sort by the Status column, select all the entries marked missing , right-click to open the context menu, and select Delete. Finally, commit to publish the changes to the repository.

What does SVN RM do?

Name. svn delete (del, remove, rm) — Delete an item from a working copy or the repository.


3 Answers

Nope.

Not unless they're still in use by some other application, sorry.

like image 148
user90052 Avatar answered Oct 02 '22 21:10

user90052


Can't you just check out whatever you were working again in a new directory? If you had any changes that were not versioned you are SOL, anything else you can just svn revert to the latest version in the repository.

like image 37
X-Istence Avatar answered Oct 02 '22 21:10

X-Istence


Going to the file directory,

svn revert "filename"

will restore any file locally deleted, yet not committed, but already under version controlled.

like image 28
karim Avatar answered Oct 02 '22 23:10

karim