4 ms·
No, your git repository is not a backup. It's a record of the history of your project, but it's not sufficient as a backup. You could see pushing as making a b
by _ikke_ 12y ago
No, your git repository is not a backup. It's a record of the history of your project, but it's not sufficient as a backup.
You could see pushing as making a backup, but even that wouldn't backup the exact state of your repository (private branches, configuration, reflog, rerere, etc..).
If an object gets corrupt, it's almost impossible to fix it, unless you have a copy of that object somewhere.
That's why it's still important to make backups of your repository.
- Walkman 12y agoI disagree. Even if you are a couple of commits behind, and you totally screwed, you should be able to recreate it from top of your head. maybe a couple of local git hooks, but still, if you pushed, the most important work should be available somewhere else and you can pull it.