Code Review and Teamwork
55%
Commit Messages That Don't Suck
While we're on the topic, let's talk about commit messages. You've been writing short, one-line messages with -m, and that's fine for simple changes. But there's a widely used convention worth knowing.
A good commit message has a short first line (50 characters or less) that summarizes the change, optionally followed by a blank line and a longer explanation. The first line should be written as an imperative - "Add feature" rather than "Added feature" or "Adding feature."
For example:
Add floor division function
Implement floor_divide(a, b) that returns a // b.
Includes a zero-division check that returns an error
message, consistent with the existing divide function.
Learn Git in a Day
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.
Unlock now $9.99$7.49Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
