Git Commit Message Generator
Generate Conventional Commits messages with a type, optional scope, body, BREAKING CHANGE footer and issue references, with a subject length check.
Git Commit Message Generator
Examples
Commit message preview
feat(auth): add OAuth2 login support Implemented OAuth2 authentication flow with Google and GitHub providers. Supports automatic account linking and email verification.
Git command
git commit -m 'feat(auth): add OAuth2 login support Implemented OAuth2 authentication flow with Google and GitHub providers. Supports automatic account linking and email verification.'
Run this command in your terminal after staging your changes with git add
Conventional commits format
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
- Type describes the kind of change (feat, fix, docs, etc.)
- Scope is optional and describes the affected component
- Description should be lowercase and imperative ("add" not "added")
- Breaking changes are indicated with "!" after scope or "BREAKING CHANGE:" in footer
- First line should be 72 characters or less (50 recommended)
Validation
Tips
- Use imperative mood: "add" not "added" or "adds"
- Don't capitalize first letter of description
- No period at the end of description
- Separate subject from body with a blank line
- Use the body to explain what and why, not how
- Reference issues and PRs in the footer
Updated . Provided as is. Check the output before you rely on it in production.
How to use Git Commit Message Generator
- 1
Pick the commit type
Choose feat, fix, docs, style, refactor, perf, test, build, ci or chore.
- 2
Add a scope
Optionally name the affected area, such as auth, ui or api.
- 3
Write the description
Write a short summary in the imperative mood (add OAuth login, not added OAuth login), plus an optional body explaining what and why.
- 4
Mark breaking changes and issues
Tick breaking change and describe it, and add references such as Closes #123.
- 5
Copy the message or command
Copy the formatted message, or the git command that commits with it.
Questions and answers
What is Git Commit Message Generator?
What is the Conventional Commits format?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/git-commit-message-generator/
For automation planning, fetch the canonical contract at /api/tool/git-commit-message-generator.json.