Instead of a backup, i store my important documents (my resumee, certificates and such) in a git repository - which is then pushed to sth like github.
My reasons for using git instead of an backup are:
My important documents are anyways inside git repositories, so pushing the content regularly to an external server(or github.com) is not difficult at all.
I don't know much of how to make proper backups (so that they are protected from ransomware).
Its obvious that ransomware can destroy my local repository, but can they also destroy the remote one? I mean, the connection is done with ssh keys, so a ransomsoftware can obviously read the key and push sth to github. But then I could maybe just revert the commit, right?
So the essence of my questions is: can a ransomware destory the content of the .git folder on the remote repository? (so, that i can't revert any change)
(NOTE: I do not mean using some exploits or anything like that, because of course it the answer to my question would be then "yes" )
git push --force
it would be able to rewrite history on every remotes. So yes, if well done, it can prevent you to revert to a previous commit.git push
, without--force
is possible)