Hacker News new | ask | show | jobs
by morelisp 1116 days ago
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?

2 comments

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 ;)
these all are excellent questions the undo tool could ask user.