git undo commit

git reset --soft HEAD^
http://stackoverflow.com/questions/927358/git-undo-last-commit