Just recently something went terribly wrong and I lost some recently made source code updates that, even though they’d been checked into version control had not been pushed anywhere. So there was no backup. It’s my own stupid fault; I let WordPress make an update that it shouldn’t have.
Just before April Fool’s day, I updated a plugin. Not knowing I’d be subjected to a WordPress update muggin’.
My trace plugin was wiped to nought, to just an empty folder. The git repo has disappeared. My latest push was older.
I’d made some changes that past week. I’d logged them all as Issues. But my commits had been wiped too. I nearly reached for tissues!
It isn’t enough to check ‘em in. You have to push elsewhere. Unlink’s a dangerous command. It gave me quite a scare.
The irony is, I wrote some code to protect my symlinked source. But I’d taken one step beyond and that led to the lo(r)ss.
In time I’ll write some logic, that might just be a hit, to prevent updates to my source code that’s a cloned repo from git.
I learnt a thing or two that day. It wasn’t just bad luck. Humans, they just err a bit; then WordPress f*cks it up!