Create Git Commit
Create a git commit using conventional commit format.
- •Run
git statusandgit diff --stagedto see staged changes - •Run
git log -5 --onelineto check commit history style - •Analyze the changes and create a conventional commit message:
- •Use prefixes:
feat:,fix:,refactor:,docs:,chore:,style:,test: - •Keep the summary line concise (≤50 chars preferred)
- •Add details in body if needed
- •Use prefixes:
- •Stage files with
git addif needed - •Commit with a HEREDOC to preserve formatting:
code
git commit -m "$(cat <<'EOF' <type>: <concise summary> <optional body with more details> EOF )"
IMPORTANT:
- •Never include Claude, AI, or co-authorship mentions
- •Follow the repository's existing commit style
- •Do NOT run
git pushunless explicitly requested