> I'm terrified I'll gut the repo by getting a flag wrong.
There are pretty few operations in git which can't be undone by a quick glance at git-reflog.
There are pretty few operations in git which can't be undone by a quick glance at git-reflog.
? 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.
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.