Friday, February 18th, 2011 | Author: bmadsen

I’ve been working with Subversion a lot lately and had to revert a file deletion that occurred a year ago in my employer’s code-base.  Doing a quick Google search, I found this article:

http://www.canfield.com/content/svn-restore-deleted-file

The article got me on the right track, but I found that I could drop the “-r (revision)” parameter and just do this:

svn copy https://{URL}/canfield.conf@98 .
svn commit

This keeps the history of the file during the restore process, which some of the other methods may not do.  One important note is that you go back to the revision before the file was deleted.

Category: TechTalk
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply