Rich Dougherty rd.nz

Undo last commit in Git

From Josh’s answer on StackOverflow:

git commit --amend

The git commit manual says that --amend, unlike some of the other StackOverflow answers, can be used to amend merge commits.