Recall & Review
beginner
Why is it important to write good commit messages?
Good commit messages help your team understand what changes were made and why. They make it easier to track history, find bugs, and collaborate effectively.
Click to reveal answer
beginner
What are the three main parts of a good commit message?
A good commit message has: 1) A short summary (about 50 characters), 2) A blank line, 3) A detailed explanation if needed (wrapped at 72 characters).
Click to reveal answer
beginner
What tense should you use in the commit message summary?
Use the present tense, like "Fix bug" or "Add feature", because the commit describes what the change does now.
Click to reveal answer
beginner
Example of a good commit message summary?
Fix login error when password is empty
Click to reveal answer
beginner
What should you avoid in commit messages?
Avoid vague messages like "fix" or "update" without details. Also avoid very long summaries or no explanation when the change is complex.
Click to reveal answer
What is the recommended maximum length for the commit message summary line?
✗ Incorrect
The summary line should be about 50 characters to keep it concise and readable.
Which tense is best to use in commit message summaries?
✗ Incorrect
Present tense is preferred because the commit message describes what the change does now.
What should you do after the summary line in a commit message?
✗ Incorrect
A blank line after the summary separates it from the detailed explanation.
Why avoid vague commit messages like "fix" or "update"?
✗ Incorrect
Vague messages don't help others understand the purpose of the change.
How should long explanations in commit messages be formatted?
✗ Incorrect
Wrapping at 72 characters improves readability in many tools.
Describe the structure and style of a good commit message.
Think about how to make your message clear and easy to read.
You got /5 concepts.
Explain why vague commit messages are problematic and how to improve them.
Imagine your teammate reading your commit weeks later.
You got /4 concepts.