undo
git commit -m "something terribly misguided" (1)
git reset HEAD~ (2)
...edit files... (3)
git add . (4)
git commit -c ORIG_HEAD (5)Last updated