Comment by philjohn
7 years ago
The underlying system is well designed, but a user interface that allows you to get into a point where you can hose a repo is anything but.
7 years ago
The underlying system is well designed, but a user interface that allows you to get into a point where you can hose a repo is anything but.
The user interface should allow you to do anything you want, but warn you properly. In my experience, this is what git does if you’re about to do something dangerous.
How can you blame git for deleting stuff if you blindly pass --force to it?
you can always get back to what you had before unless you try really, really hard to destroy data
git reflog is your friend