my-git

Commit Message Convention

English 中文

Format

<type>(<scope>): <subject>

Types

Examples

feat(auth): add GitHub OAuth login
fix(api): handle empty response correctly
docs(git): add troubleshooting guide
refactor(order): simplify pricing calculation
test(auth): cover expired token case

Rules

AI Collaboration and Co-authored-by

When a team requires AI tool participation to be recorded, leave one blank line after the commit body and add the team-approved attribution trailer:

Co-authored-by: <name or approved tool identity> <email>

GitHub supports one or more Co-authored-by trailers for recording co-authors. Its required format and email guidance are in GitHub Docs: Creating a commit with multiple authors.