Description
Here is how you should commit project.
Workflow
- •Stage:
git add -Ato stage all changes - •Analyze:
git diff --cached --statto see what changed - •Commit: Generate ONE-LINE message (max 50 chars):
- •
fix: [what was fixed] - •
feat: [what was added] - •
update: [what was modified] - •
refactor: [what was reorganized]
- •
- •Push:
git pushimmediatelyne
Message Rules
- •ONE LINE ONLY - no body, no details
- •Under 50 characters - be concise
- •No periods - waste of space
- •Present tense - "add" not "added"
- •Lowercase after colon -
fix: typonotfix: Typo
Examples
code
feat: add user authentication fix: resolve memory leak update: improve error handling refactor: simplify api routes docs: update readme
Execution
- •NO interactive commands
- •NO verbose messages
- •NO "Generated with" signatures
- •If no changes, exit silently
- •If push fails, report error only
Priority
Speed > Detail. Keep commits atomic and history clean.