5 ms·
> While it's easy to blow away work you haven't committed This is bad enough. Git treats your workspace as trivial that can be replaced willy nilly.
by KaoruAoiShiho 7y ago
> While it's easy to blow away work you haven't committed
This is bad enough. Git treats your workspace as trivial that can be replaced willy nilly.
- jlebar 7y agoI don't believe hg is any better in this respect.
- yjftsjthsd-h 7y agoI can tell you that it is in at least one use case that I've hit. If you have local uncommitted changes to a file, and then run `hg revert file` to undo your changes, it creates (by default) a ".orig" backup. The equivalent git command (`git checkout --hard` or something?) will just throw out local changes with no takebacks.
- philpem 7y agoI would absolutely love it if Git had this feature. Having it on Hg has saved me so many times.