What are the best practices for writing Git commit messages?
- User
What are the best practices for writing Git commit messages?
Assistant
The best practices for writing Git commit messages include:
-
Use a clear and concise subject line: The subject line should be a maximum of 50 characters and provide a brief summary of the changes made.
-
Use the imperative mood in the subject line: Start the subject line with a verb, such as "Add" or "Fix," to describe the change.
-
Explain the changes in the body: Provide a more detailed description of the changes made in the body of the commit message. This should be a maximum of 72 characters wide and should be wrapped at 72 characters.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.