Skip to content
Discussion options

You must be logged in to vote

Commit messages help maintainers and collaborators understand the history of changes. Best practices include:

Write a short and descriptive subject line (50 characters or less)

Example: "Fix bug in user login validation"

Avoid vague terms like "update" or "changes".

Use the imperative mood

Example: "Add feature to export reports" instead of "Added feature to export reports".

Add a detailed body when necessary

Explain the reason for the change, context, or side effects.

Keep each line within ~72 characters.

Reference related issues or pull requests

Example: "Fix dashboard rendering issue (#42)".

Keep commits focused

Each commit should represent a single logical change for clarity and easie…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mysterious-sprit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants