News for hackers. Stuff that matters.
Re:Highlights from Git 2.23 by yjftsjthsd-h on Saturday August 17, 2019 @01:20AM (#20722251)
As a comparison, mercurial seems to do this; if you revert an uncommitted change, it makes a "*.orig" file. (Mercurial generally is more obsessed with never losing anything than git, such as its refusal to delete commits)
Re:Highlights from Git 2.23 by chongli on Saturday August 17, 2019 @10:47AM (#20724290)
Mercurial generally is more obsessed with never losing anything

Which is silly, because people often commit sensitive data such as private keys or customer's personal information. Sometimes you really do need to delete a commit (or worse, a file that lives through a long history of commits).