Hacker News new | ask | show | jobs
by bawolff 7 days ago
The backup part of that is that you are sending a copy of your code to a separate server (github).

It has nothing to do with git. Making a copy on a separate server would still be a backup even if you weren't using git. Using git without pushing your repo somewhere else would not be a backup.

2 comments

In this case, using Git would have helped even if it was local-only.
What did the AI actually do? Because `rm -rf .` is not something git can help you with.
AFAICT, it only deleted the code using the library, not the whole repository.
It was a fake post anyway, but the instructions were to remove the output of that library and code using it, not delete everything on the computer or project.
see response to charcircuit below.