3 ms·
> There’s basically never an irrecoverable state in git That is technically correct but irrelevant. If a user doesn't know how to easily recover, then there's
by dwheeler 6y ago
> There’s basically never an irrecoverable state in git
That is technically correct but irrelevant. If a user doesn't know how to easily recover, then there's a problem.
There should probably be a "git undo" command that always undoes whatever was done last. There's usually a way to undo a command (e.g., using the reflog), but the problem is that you have to know the correct incantation for every circumstance:
https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/ https://github.blog/2015-06-08-how-to-undo-almost-anything-w...