This doesn't work if you've already pushed the commit to a remote.
# remove the last commit from the current branch git reset HEAD~ --hard
# remove the last commit from the current branch git reset HEAD~ --soft