sajad torkamani
git reset --soft HEAD~1

This will remove the last commit message and rollback your working tree to what it was just before you committed. So all the changes in your last commit will remain intact but the commit message will be removed.

This is useful when you want to make a change to your previous commit.

Tagged: Git