8 lines
505 B
Markdown
8 lines
505 B
Markdown
# Git Commit Rules
|
|
|
|
- **Format:** `<type>(<scope>): <description>` (e.g., `feat(auth): Add Google login`)
|
|
- **Types:** `feat` (new), `fix` (bug), `docs` (docs), `style` (format), `refactor` (code structure), `chore` (maintenance).
|
|
- **Scope (Optional):** Affected module in lowercase (e.g., `api`, `db`).
|
|
- **Description:** Capitalize first letter, max 50 chars, imperative verb (`Add`, `Fix`). No trailing period.
|
|
- **Rules:** 1 logical change per commit. Link tickets in footer (`Resolves: PROJ-1234`).
|