News for hackers. Stuff that matters.
Re:Oh Shit, Git by toxik on Saturday June 25, 2022 @12:14PM (#31876438)
Ah yes, the classic `rm --undo` saved me so many times. No, command-line interfaces rarely offer undo. The onus is on the user to not do irreversible things when they may need to be reversed.

Git, coincidentally, does have something equivalent to undo history: the reflog.

Re:Oh Shit, Git by ogogmad on Saturday June 25, 2022 @12:39PM (#31876666)
"rm" was made in the '70s. Git was made in the '00s.
Re:Oh Shit, Git by toxik on Saturday June 25, 2022 @01:08PM (#31876895)
Nothing prevents rm from being made to “put in trash bin” in the year 2022. Your argument seems weak. rm removes. mv moves. If you want mv, use mv.
Re:Oh Shit, Git by amelius on Saturday June 25, 2022 @03:46PM (#31878131)
Nobody said that rm was perfect ;)