@b0rk is “almost nothing is that important” a good answer? I’ve talked to some people who have blown up homework assignments and I usually just tell them “it’s not actually as bad as you think. You didn’t actually lose all your work because now you know how to do it and you can write it again much faster and even better now”… which is maybe cold comfort at first but people usually tell me I was right after they fix it!
The other thing is just having more familiarity with the tools so you know what’s dangerous and what’s not… And when something seems sketchy you know to make a snapshot / backup beforehand. Better yet, you already have backups of everything important so one command on one computer can’t ruin everything. Everything I really care about is in git repos that are replicated already, so I’m never *too* worried.