That’s why it’s recommended to use version control software like Git, backed up to a remote repository like GitHub.