Ad space (top)
Home βΊ Prompt Library βΊ Prompt for a Git Commit Message
Prompt for a Git Commit Message
Turn a diff or description of changes into a clean, conventional commit message.
Coding
Β· Works great in Any AI
Copy-ready prompt
Write a git commit message for these changes: [paste diff or describe what changed] Requirements: - Follow Conventional Commits (type: short summary). - Imperative mood, under ~72 characters for the summary. - A body explaining what and why (not how), if needed. - Note any breaking changes.
Want a version tailored to you?
Answer a few quick questions and the Code Prompt Generator builds a custom prompt from your exact details.
π» Open the Code Prompt GeneratorAd space (inline)
Why this prompt works
Good commit history is documentation. This prompt produces conventional, imperative-mood messages that explain the why, making your log searchable and useful to future you and your teammates.
How to customize it
- Paste the actual diff for the most accurate message.
- Keep the summary line short and imperative.
- Explain why in the body; the code shows how.
Tip: replace the parts in [square brackets] with your own details before you send. The more specific you are β audience, tone, goal, constraints β the better the AI output.