News for hackers. Stuff that matters.
Re:Shellfirm: Intercept risky patterns at the command line by matsemann on Sunday July 31, 2022 @05:49AM (#32294471)
You've already gotten tips based on git. But if you use a JetBrains IDE, you also have the local history there. Or can use the shelve functionality, which is like git's stash but a bit smoother.
Re:Shellfirm: Intercept risky patterns at the command line by staindk on Sunday July 31, 2022 @08:50AM (#32295177)
I don't know how JetBrains IDEs do 'local histories' but FWIW VSCode recently also implemented "local file history"[1]. I have not had to use it to salvage anything yet, but I'm sure that day will come.

[1] https://twitter.com/code/status/1511463379210317824