Hacker News new | ask | show | jobs
by fooker 31 days ago
Not just mistakes though, the power of git is being able to undo anything you do with git.

If you’re claiming to have never needed any kind of undo functionality, you probably don’t even need a version control system :)

1 comments

You can also undo things in Mercurial - there are just fewer footguns to need undoing.
No, it's pretty easy to cause irreversible damage. This is a fairly well known advantage of git over literally everything else.

https://stackoverflow.com/questions/7376915/recover-lost-fil...

It's "easy" with a single deprecated command that no one I know of has ever needed. I didn't even know that command existed.