To undo a git commit locally, do the following.
git log git revert __my_commit_id__
The following will also work. –hard would physically remove your commit, while –soft would simply jump back one commit.
git reset --hard HEAD~1 git reset --soft HEAD~1
ref: http://stackoverflow.com/questions/927358/how-to-undo-the-last-git-commit