Yeah, "undo the last thing I did" - There is no button / single command (as far as I know) - you google and get loads of "if this, do this, else this" - dang, I just want to undo and get on with what I need to do!
If the last thing you did was switch branches do you want to undo switching branches, or undo the last thing you did on the branch?
If the last thing you did was stage, do you want to unstage, or undo the last change outside the staging area?
If undoing the last thing you did is not compatible with the current state of the working copy, what happens?
If your last change was to discard or apply uncommitted changes, how can that be undone? If the answer is "do lots of hidden commits", how does that interact with undo?
Visual Studio, for example, switch, stage - it makes the option obvious (bring changes, or discard?), got no problems there, un-doing something that I have committed - that is what I am mentioning, no easy to undo... (is it local stage? do this, did you push? do this..., have other people in repo got the changes, do this, etc...), got shiz I need to be doing rather than reading these details ;)
morelisp|2 years ago
If the last thing you did was stage, do you want to unstage, or undo the last change outside the staging area?
If undoing the last thing you did is not compatible with the current state of the working copy, what happens?
If your last change was to discard or apply uncommitted changes, how can that be undone? If the answer is "do lots of hidden commits", how does that interact with undo?
Trigg3r|2 years ago
112233|2 years ago