Lurker News

Comments (229) 38 threads

Show all comments

Showing thread 5 of 38

pjc506 replies#
You know what would make me faster at git?

"git undo" : undo the last git command line, whatever it did. Especially if you don't understand what it did or it overwrote local files.

iwwr#
You could store your git refs in another git repo and take a snapshot of those after each command that changes things.
sverhagen#
Nice, but the README suggests it only does commits. I already have a simple alias for that. The parent comment wanted to undo anything.
karmakaze#
Many operations have an --abort option during the process. In other cases, there's `git reflog`.
floo#
Not a CLI, but GitKraken does that for most commands.
rplnt#
Some operations can't be undone. So you would need to wrap them in commands that would make undone possible. That would be interesting...