A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the Git Commit Doctor page

Tools / Build suite

Git Commit Doctor

Diagnose commit messages against Conventional Commits and good-message practice, with rewrites

Paste a commit message or a whole git log; get each message diagnosed - type, scope, subject length, imperative mood - plus a rewrite that passes.

Open the tool
Screenshot of the Git Commit Doctor tool

What it does

Messages your future self can search.

Conventional Commits lint

Header, type, subject case, period, length and wording checked per message, batch or single.

Mood and length checks

Imperative-mood check, subject length between 10 and 72 characters, trailing period, vague-word flags.

One-tap rewrites

Each failing message gets a concrete rewrite you can copy.

Batch log triage

Paste git log --oneline output and see which commits would fail review.

How it works

Paste, diagnose, rewrite.

Step 1

Paste one message or a whole log.

Step 2

Read the per-message diagnosis.

Step 3

Copy the suggested rewrite into your amend.

FAQ

Which rules?

Conventional Commits 1.0 structure plus widely shared hygiene: short imperative subject, explained body, no vague words like 'stuff' or 'fixes'.

Does it change my repo?

No. It only reads what you paste and suggests text.

Open Git Commit Doctor

Worked example

Real output, from the tool itself.

This is what Git Commit Doctor returned for its built-in example input, captured from the tool - not a mockup.

You enter

Input

fixed stuff
a1b2c3d feat(api): add rate limiting to public endpoints
WIP
updated the readme file
9f8e7d6 refactor(auth)!: drop legacy session cookies

The tool returns

fixed stuff
3 issue(s)
- No Conventional Commits header (type: subject).
- Vague word 'stuff' says nothing searchable.
- Use imperative mood: 'add', 'fix', 'update', not past or present continuous.
Suggested: fix: describe what changed and why
feat(api): add rate limiting to public endpoints
clean
WIP
3 issue(s)
- No Conventional Commits header (type: subject).
- Subject is only 3 chars; say what changed and why it matters.
- Vague word 'wip' says nothing searchable.
Suggested: fix: describe what changed and why
updated the readme file
2 issue(s)
Try it with your own input

More in the Build suite

Font Pairing LabWebhook TesterPricing Page BuilderLanding Page MakerStatus Page Starter
A laptop, headphones, a camera, a phone and a plant on a white desk, seen from above, banner image on the Git Commit Doctor page

Try it now.

Git Commit Doctor runs in your browser. No account needed.

Input To Output

Messages in, diagnosis out

Commitmessages, oneper lineOr git log--onelineoutputIssue count orcleanEach issue inwordsA suggestedrewriteGit CommitDoctorInOut
InCommit messages, one per lineOr git log --oneline outputGit CommitDoctorIssue count or cleanEach issue in wordsA suggested rewriteOut
Each line gets issues and a suggested rewrite.

Pipeline

What it checks, in order

Strip a leadingcommit hashMatchtype(scope)!:subjectCheck type, caseand periodCheck length andvague wordsCheck imperativemoodSuggest a rewriteif anything failed
Strip a leading commit hashMatch type(scope)!: subjectCheck type, case and periodCheck length and vague wordsCheck imperative moodSuggest a rewrite if anythingfailed
Per line.

Before After

The starter lines

CommitResultfixed stufffeat(api): add rate limitingto public endpointsWIPupdated the readme filerefactor(auth)!: drop legacysession cookies3 issuesclean3 issues2 issuesclean
Commit to Resultfixed stuff3 issuesfeat(api): add rate limiting topublic endpointscleanWIP3 issuesupdated the readme file2 issuesrefactor(auth)!: drop legacy sessioncookiesclean
Result for each of the five.

Bar Compare

Issues per starter line

fixed stuff3 issuesfeat(api): add ratelimiting0 issuesWIP3 issuesupdated the readmefile2 issuesrefactor(auth)!: droplegacy session cookies0 issues
fixed stuff3 issuesfeat(api): add rate limiting0 issuesWIP3 issuesupdated the readme file2 issuesrefactor(auth)!: drop legacy session cookies0 issues
Counts from the five lines.

Support Matrix

Which check each starter line fails

no headervague wordnot imperativetoo shortfixed stuffWIPupdated the readmefilefeat(api): add ratelimitingrefactor(auth)!:drop legacy
fixed stuffno headervague wordnot imperativeWIPno headervague wordtoo shortupdated the readme fileno headernot imperativefeat(api): add rate limitingnone of theserefactor(auth)!: drop legacynone of these
Four checks across the five lines.

Before After

Suggested rewrites

You wroteSuggestedfixed stuffWIPupdated the readme fileadded dark modeFix: Login bug.feat: Add searchfix: resolve stufffix: describe what changedand whydocs: update the readme filefeat: add dark modefix: login bugfeat: add search
You wrote to Suggestedfixed stufffix: resolve stuffWIPfix: describe what changed and whyupdated the readme filedocs: update the readme fileadded dark modefeat: add dark modeFix: Login bug.fix: login bugfeat: Add searchfeat: add search
The tool proposes a header.

Pipeline

How the type is guessed

readme or doc:docstest: testperf or speed:perfrefactor, cleanupor rename:refactorremove, drop ordelete: refactoradd, new orsupport: featAnything else: fix
readme or doc: docstest: testperf or speed: perfrefactor, cleanup or rename:refactorremove, drop or delete: refactoradd, new or support: featAnything else: fix
The first match wins.

Before After

Type guesses

SubjectGuessupdate the readmeadd testsspeed up the buildrename the configadd dark modetypo in headerdocstestperfrefactorfeatfix
Subject to Guessupdate the readmedocsadd teststestspeed up the buildperfrename the configrefactoradd dark modefeattypo in headerfix
Sample subjects and the guessed type.

Before After

Past tense to imperative

Starts withRewritten asaddedfixesupdatedremovingchangedaddfixupdateremovechange
Starts with to Rewritten asaddedaddfixesfixupdatedupdateremovingremovechangedchange
Five verb swaps in rewrites.

Before After

The fix verb

You wroteSuggestedfixed stuffoops(api): fix thingfix: resolve stufffix(api): resolve thing
You wrote to Suggestedfixed stufffix: resolve stuffoops(api): fix thingfix(api): resolve thing
A fix guess swaps fix for resolve.

Pipeline

Reading the header

A type wordAn optional scopein bracketsAn optional ! fora breaking changeA colon and thesubject
A type wordAn optional scope in bracketsAn optional ! for a breakingchangeA colon and the subject
One pattern, four parts.

Before After

Header split

PartIn the exampletypescopebreaking marksubjectrefactorauth!drop legacy session cookies
Part to In the exampletyperefactorscopeauthbreaking mark!subjectdrop legacy session cookies
What the parts are.

Real Timeline

Subject length

1: too short1 chars10: shortestaccepted10 chars72: longestaccepted72 chars80: too long80 chars
11: too short1 chars1010: shortest accepted10 chars7272: longest accepted72 chars8080: too long80 chars
Under 10 is short, over 72 is long.

Before After

Length messages

MessageIssuechore: xfeat(api): and 80 lettersSubject is only 1 chars; saywhat changed and why itmatters.Subject is 80 chars; keep itat 72 or fewer.
Message to Issuechore: xSubject is only 1 chars; say whatchanged and why it matters.feat(api): and 80 lettersSubject is 80 chars; keep it at 72or fewer.
Wording used.

Before After

Vague words

MessageIssuefixed stuffWIPVague word 'stuff' saysnothing searchable.Vague word 'wip' saysnothing searchable.
Message to Issuefixed stuffVague word 'stuff' says nothingsearchable.WIPVague word 'wip' says nothingsearchable.
Eight words are flagged: stuff, things, misc, wip, fixes, changes, updates, asdf.

Before After

Commit hash stripped

PastedCheckeda1b2c3d feat(api): add ratelimiting to public endpoints9f8e7d6 refactor(auth)!:drop legacy session cookiesfeat(api): add rate limitingto public endpointsrefactor(auth)!: drop legacysession cookies
Pasted to Checkeda1b2c3d feat(api): add rate limitingto public endpointsfeat(api): add rate limiting topublic endpoints9f8e7d6 refactor(auth)!: drop legacysession cookiesrefactor(auth)!: drop legacy sessioncookies
A hash of 6 to 10 characters is dropped first.

Before After

Capital letters and periods

MessageIssuefeat: Add searchFix: Login bug.Subject should startlowercase after the typeprefix.Drop the trailing period inthe subject.
Message to Issuefeat: Add searchSubject should start lowercase afterthe type prefix.Fix: Login bug.Drop the trailing period in thesubject.
Two style rules after the type.

Before After

Other results

MessageResultoops(api): fix thingrefactor(auth)!: drop legacysession cookiesdocs: update the installguidechore: xType 'oops' is not a ConventionalCommits type (feat, fix, docs,style, refactor, perf, test, build,ci, chore, revert).type: refactor(auth),breakingclean, nothing suggestedchore: x - describe whatchanged and why
Message to Resultoops(api): fix thingType 'oops' is not a Conventional Commits type(feat, fix, docs, style, refactor, perf, test,build, ci, chore, revert).refactor(auth)!: drop legacy sessioncookiestype: refactor(auth), breakingdocs: update the install guideclean, nothing suggestedchore: xchore: x - describe what changed andwhy
Four more lines and what the tool says.

Before After

Mood rule

MessageIssueupdated the readme fileadded dark modeUse imperative mood: 'add','fix', 'update', not past orpresent continuous.Use imperative mood: 'add','fix', 'update', not past orpresent continuous.
Message to Issueupdated the readme fileUse imperative mood: 'add', 'fix','update', not past or present continuous.added dark modeUse imperative mood: 'add', 'fix','update', not past or present continuous.
Past or continuous verbs are flagged.

Input To Output

Each result card

A messageThe messageIssue count orcleanOne line perissueSuggestedrewrite whenneededCardInOut
InA messageCardThe messageIssue count or cleanOne line per issueSuggested rewrite when neededOut
One card per line.

Pipeline

When a rewrite appears

Header matched andno issues: noneHeader missing:yesAny issue: yes
Header matched and no issues: noneHeader missing: yesAny issue: yes
Only on a problem.

Before After

One line or a log

PastedHandledfixed stuffa1b2c3d fixed stuffDiagnosedHash dropped, then diagnosed
Pasted to Handledfixed stuffDiagnoseda1b2c3d fixed stuffHash dropped, then diagnosed
Both work.

Before After

Rewrite keeps your type

You wroteSuggestedoops(api): fix thingfeat: Add searchfix(api): resolve thingfeat: add search
You wrote to Suggestedoops(api): fix thingfix(api): resolve thingfeat: Add searchfeat: add search
A valid type, scope and mark are kept.

Authored Tiles

The eleven types

feat, fix, docs, stylerefactor, perf, testbuild, ci, chore, revertEleven in all
feat, fix, docs, stylerefactor, perf, testbuild, ci, chore, revertEleven in all
Accepted types.

Bar Compare

Issues on more test lines

Fix: Login bug.2 issuesfeat: Add search1 issuesadded dark mode2 issueschore: x1 issuesoops(api): fix thing2 issuesdocs: update theinstall guide0 issues
Fix: Login bug.2 issuesfeat: Add search1 issuesadded dark mode2 issueschore: x1 issuesoops(api): fix thing2 issuesdocs: update the install guide0 issues
Counts from the tool code.

Support Matrix

Which check each test line fails

no headercapitalperiodunknowntypetoo shortnotimperativeFix: Login bug.feat: Add searchadded dark modeoops(api): fixthingchore: x
Fix: Login bug.capitalperiodfeat: Add searchcapitaladded dark modeno headernot imperativeoops(api): fix thingunknown typetoo shortchore: xtoo short
Five checks.

Pipeline

Building a suggestion

Lower-case thesubjectSwap the verb toimperativeGuess the type ifyours is invalidKeep your scopeand breaking markJoin as type:subject
Lower-case the subjectSwap the verb to imperativeGuess the type if yours is invalidKeep your scope and breaking markJoin as type: subject
Steps in the rewrite.