DEV Community

Discussion on: Patterns for writing better git commit messages

Collapse
 
vishnuharidas profile image
Vishnu Haridas

Good ideas. Adding examples will be good to see.

Here are my rules that I stick on to:

  • Use simple present - Update login button to use the new API
  • Begin fixes with "Fix" and include ticket number if possible - Fix #234: User cannot log in with email
  • If pausing the work today and planning to continue tomorrow, start with [WIP] (Work-In-Progress) - [WIP] improving the login process
  • Begin temporary commits (usually for testing out something) with [TEMP] - [TEMP] add a temporary logout button
Collapse
 
helderberto profile image
Helder Burato Berto

Nice tips!
The unique one I try to maintain in the body is the ticket ID because in my case it's just to be tracked in Jira and isn't to be shown.