Writing Good Commit Messages

Rule zero: “good” is defined by the standards of the project you're on. Have a look at what the existing messages look like, and try to emulate that first before doing anything else.

Having said that, here are some principles I've found helpful and broadly applicable.