A very simple command line utility that tells you what to do next.
$ npm install -g flowchart
$ flowchart git-undo
The above command will help you figure out how to undo a change in Git, based on @emmajanehw's diagram.
In fact, that diagram is the original raison d'être for this app. The plan to add more like it over time.
Adding your own flowcharts
Have a look at the flowcharts/git-undo. All you have to do is
add a new file to the flowcharts directory. Or create a directory under your home (
flowcharts and put files there. Or type:
$ flowchart play