News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part I) by eropple on Wednesday June 29, 2022 @04:50PM (#31925537)
I dunno - I can tell zsh to are-you-sure me about an `rm -rf *`, git seems like it should be able to do similarly. Or, as Mercurial does, back up overwritten files to .bak.

These are pretty light asks.

Re:Things I wish everyone knew about Git (Part I) by sagarm on Thursday June 30, 2022 @04:16PM (#31937989)
The sole purpose of git checkout -- file is to overwrite the file you explicitly listed. There should not be a confirmation by default.