4 ms·
Or even just frequent backups. A coworker of mine used to copy the entire on-disk repository including the .git directory before doing anything slightly unusual
by kccqzy 6y ago
Or even just frequent backups. A coworker of mine used to copy the entire on-disk repository including the .git directory before doing anything slightly unusual in git. Very paranoid I thought, but then he could recover from a fat-fingered wrong flag very quickly.
- jollybean 6y ago"Or even just frequent backups." ? Well, git is supposed to be that 'history' for us. I understand it's not exactly a backup, but it is pragmatically that. I don't want to have a 'backup of backup' I want to feel confident with what's there.
- dockd 6y agoWhich is ironic since source control is supposed to prevent the need for manually making backup copies.
- rualca 6y ago> Or even just frequent backups. A coworker of mine used to copy the entire on-disk repository including the .git directory before doing anything slightly unusual in git. To recover from commit screwups, it should be enough to just export the git repository somewhere else like a remote repo, or even just apply changes in a separate branch. It just seems that a developer is doing something extremely wrong with their repository if they can't recover from their experiments by checking out a branch or commit.