Friday, July 22, 2011

Recovering a deleted file from SVN

An Anonymous Geek did all the work on this one. I'm posting just in case his blog goes away; I suspect I'll need this again...


The command is:

> svn up -r 250 file.txt

up is short for update, the -r 250 indicates the revision that the file last existed in, and of course file.txt is the file you want to restore.