Restoring a deleted file
- Find the last revision in which it existed:
$ svn log -v . | less
...
---------------------------------------------------------------------
r109 | grant | 2005-10-10 13:38:35 +1300 (Mon, 10 Oct 2005) | 1 line
Changed paths:
D /trunk/faq.html
- FAQ removed - as requested by legal dept
---------------------------------------------------------------------
r108 | grant | 2005-10-10 13:35:23 +1300 (Mon, 10 Oct 2005) | 1 line
Changed paths:
M /trunk/index.html
- remove competition banner ad
...
- Copy the file back from the repository:
$ svn cp -r 108 file:///var/svn/myproj/trunk/faq.html faq.html