I'm writing a guide on how to write git commit subjects. Generate 10 examples of good…
- User
I'm writing a guide on how to write git commit subjects. Generate 10 examples of good and bad subjects and explain why they're good or bad.
- Assistant
Here are 10 examples of good and bad Git commit subjects, along with explanations:
Good examples:
-
"Add user authentication feature" Explanation: Clear and concise, describes the specific feature added.
-
"Fix bug causing app to crash on startup" Explanation: Clearly identifies the problem and the fix.
-
"Refactor database queries for improved performance" Explanation: Specifies the action taken and the benefit achieved.
-
"Update documentation for new API endpoints" Explanation: Indicates the update made and the affected area.
-
"Remove deprecated functions from codebase" Explanation: States the cleanup action performed and the reason behind it.
Bad examples:
-
"Bug fix" Explanation: Too vague, doesn't specify which bug was fixed.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.