Internet Bandaid   [RSS Feed]

Recover Deleted SVN File

without comments

I keep forgetting how to do this, so I’m going to write the steps down here.

Type the following to see a log of revisions:

bash> svn log -v

Once you’ve spotted the file and the version you want, type

bash> svn up myoldfile.txt -r29

Replace myoldfile.txt with the name of the file you want to recover, and 29 with the version number of the file you want to recover.

Now you’ve got your file back but it’s still registered as the old 29 version. So you’ll need to make a copy of it and then do an “svn add” to include it as a recent version.

Written by John Lai

April 8th, 2009 at 6:36 pm

Posted in Uncategorized

Tagged with ,

Start Mission - Project management and invoicing

Leave a Reply