pictures

Undelete Something With SVN

hr
hr

Ever delete something with svn (svn del) and then realize you needed it again? You can get it back by using: svn copy -r HEAD filenameyoudeleted.extension filenameyoudeleted.extension

  • svn copy is the command to get a working copy back
  • -r is short for revision. I used HEAD which will give you the latest in repository. You can specify a revision number, revision right before you committed, etc (check out svn help copy)
  • filename is what you deleted, then where it goes. I usually do something like this within the folder the file was located so you do not see any paths, but if your file was in /www/files/ you would need to specify the file path to /www/files/filnameyoudeleted.extension /www/files/filnameyoudeleted.extension

Working with SVN is a lifesaver - and this tip is gold.

hr

Related Posts

Comments, Pingbacks and Tracebacks

(Comment icons use gravatars. Sign up for a gravatar so you can be cool too.)

hr

Leave a Reply


search

subscription information

Blog RSS

Comments RSS



Powered by FeedBlitz

blog categories

blog tags

most popular posts

  1. using parallels and windows for web development debugging.
  2. remove all .svn directories in a directory.
  3. wordpress newsletter plugin.
  4. php live training.
  5. jappler recommends: room & board (store).
  6. another good first tuesday in november.
  7. so long, farewell ben!
  8. feel better soon joe paterno.
  9. css containers: one image, fixed width, rounded corners.
  10. outlook users having issues with mail.app attachments.

blog archive

standards

Get Firefox!
XHTML
CSS