- Run
git statusto see the current state - Run
git diffto understand the changes - If no files are staged, run
git add -A .to stage all changes; otherwise skip - Create a commit with a clear message that:
- Starts with a type prefix (feat:, fix:, refactor:, docs:, test:, chore:)
- Briefly describes what changed
- Uses imperative mood ("Add feature" not "Added feature")
Example: feat: add product search functionality