Commit Changes
Commit local changes following conventional commit message format.
Steps
- •
Review uncommitted changes
bashgit status git diff
- •
Stage changes
bashgit add -A
- •
Commit with conventional format
bashgit commit -m "<prefix>: <summary (imperative, concise)>"
Commit Message Format
Use conventional commit prefixes:
- •
feat: New feature - •
fix: Bug fix - •
refactor: Code refactoring - •
perf: Performance improvement - •
test: Tests - •
docs: Documentation - •
build: Build system - •
ci: CI configuration - •
chore: Maintenance - •
style: Code style - •
revert: Revert changes
Example:
bash
git add -A && git commit -m "fix: remove unnecessary debug log output"
Notes
- •This command only commits; it does not push to remote
- •Branch protection policies are out of scope
- •Always review diffs before committing