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
Sure, here are some examples of good and bad commit subjects:
- Good: "Fix bug in production application"
- Bad: "Add feature to development application"
- Good: "Improve code style: add indentation and use consistent formatting"
- Bad: "Fix spelling and grammar errors"
- Good: "Add tests to fix bug #123"
- Bad: "Add documentation for new feature"
The good subjects provide information about the change that was made and why it was made. They are clear and concise, and they help to communicate the purpose of the change to other developers. On the other hand, the bad subjects are often too general or too focused on the activity itself, rather than the results. They may not provide enough information to make informed decisions about the change, and they may not be clear enough to explain why the change was made to others.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.