How to Totally Fuck Up Your Subversion Working Copy

2007.12.29 13:03

For ultimate success in losing your valuable work, ignore these tips:

  1. svn revert doesn’t just revert the location of the file (undoing an svn mv), it also resets the content to that of your last svn update.
  2. When using the unix mv command to move a file into a directory, ensure that the second argument is actually an existing directory. If not, you could move 10 things into the directory, only to find that the directory is a file containing the content of the last file you moved, and the other 9 files are lost, forever.

Luckily, I had backed up my work the day before.

Unix gods, I bow before ye. Purify me with your light. I have lost my way.

Comments? (moderated as hell)

allowed HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>