News for hackers. Stuff that matters.
Re:Git undo: We can do better by sixstringtheory on Monday June 21, 2021 @06:10PM (#27585192)
What about `history | grep “^git”?

Edit to add: the downside is that it only works in the current terminal session. To workaround that for myself, I have a fish shell post exec function that records the last command run, plus a bunch of metadata, to a log file.

There are no comments on this comment yet.