This StackOverflow question has the best solutions/approaches to undo last commits.
I started using Magit a couple a weeks ago and after looking through all its documentation I still don't have a definitive/best way to undo a mistakenly committed change.
For example:
For undo and redo the last commit we can use:
$ git commit -m "Something terribly misguided"
$ git reset HEAD~
<< edit files as necessary >>
$ git add ...
$ git commit -c ORIG_HEAD # To keep the same commit message
What should be the best workflow to reproduce this procedure using Magit?