Undo the Most Recent Commit

The exact steps to undo the most recent commit.

git commit -m "Something terribly misguided" #(1)
git reset HEAD~ #(2)
<< edit files as necessary >> #(3)
git add . #(4)
git commit -c ORIG_HEAD #(5)