To amend the previous commit and keep the same log message, run:

git commit --amend -C HEAD