Write useful commit messages
There’s already a really solid bit of writing from cbeams on how to write useful commit messages. Pretty much everything in their post hits home and has withstood the test of time. It’s a great read, and worth digesting front to back.
However, if you want to just cut to the chase you can go directly to their seven rules of a great Git commit message.