3 ms·
Before I had figured out VCSs I didn't know how to branch in subversion. I had a site that was based on a checkout from about six months before, but I had made
by notaddicted 16y ago
Before I had figured out VCSs I didn't know how to branch in subversion. I had a site that was based on a checkout from about six months before, but I had made a bunch of hotfixes to it while development continued on the main branch. I wanted to make a backup copy of the code on my workstation so I logged into the server and typed:
$ tar xzf archive.tgz live-directory
So by typing x for extract instead of c for compress I accidentally overwrote everything right at the moment I wanted to back it up. Two hours later I had the site working again, six hours later I had it back to where it was before I deleted it. It was painful to spend a whole stressful day undoing the damage from a one character typo.