Skip to content

What are the best practices for writing effective commit messages? #460

Answered by AhmedSalman1
AhmedAli375 asked this question in Q&A
Discussion options

You must be logged in to vote

Best Practices for Commit Messages:

  1. Follow a structure:
    • Short summary (50 characters max)

  2. Be specific:
    • Bad: "Fix issue" • Good: "Fix crash on login page"

  3. Use prefixes:
    • feat: for features, fix: for bugs, docs: for documentation

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AhmedAli375
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