ideacode has consistently displayed excellent coordination to implement our highly detailed requirements. Their communication on all projects has been outstanding.

919-341-5170

help@ideacode.com

 

Blazing a trail to better facilities management.

SVN

Doh! I needed that file!

Every once and a while, I remove a file (or directory of files) from my local repository that I want back.  No big deal, it's in the repository.  Well, yeah, but finding it and using the right command is not so straightforward.  And since I recently deleted a whole bunch of files and I'm waiting to get them back, I'll show you how.

To recover deleted files from svn, first find the revision in which the file(s) existed:

cd /path/to/local/repository/
svn log --verbose .

I had a lot of files to recover, so I piped the output to a temporary file and cut out the junk I didn't need.

Second step, recover those files:

Syndicate content