Git’s official documentation says to start a commit message with a single short line of no more than 50 characters, then a blank line, then the detailed description. The 50 is not a value Git enforces; it is a soft limit. This article uses Korean text for its examples, so Korean sample titles are kept as written, with their meaning in parentheses. A Korean syllable counts as one character, so 50 Hangul characters fit, but a prefix such as feat(auth): takes up the front of the line and leaves much less room. The standard below was checked in Git’s official documentation on 2026-11-25, and the example character counts come from Geuljasu’s counting functions.
AI-generated image
How long does the documentation say a commit title should be?
The “DISCUSSION” section of the git-commit documentation says that, though not required, it is a good idea to begin the commit message with “a single short (no more than 50 characters) line”, followed by a blank line and a more thorough description. The same section explains that the text up to the first blank line is the commit title, and that this title is used throughout Git. The SubmittingPatches document also says the first line should be a short description and that “50 characters is the soft limit”.
| Item | Standard | Source |
|---|---|---|
| Title length | One line of no more than 50 characters | git-commit docs, DISCUSSION |
| Nature of the 50 | Soft limit (not enforced) | SubmittingPatches docs |
| Between title and body | One blank line | git-commit docs, DISCUSSION |
| What counts as the title | Text up to the first blank line | git-commit docs, DISCUSSION |
Neither document gave a column width for wrapping the body. Body width is a value set by each team or tool, so this article does not cover it. We also did not check where a hosting service’s screen cuts off a long title.
How many Hangul characters fit in 50?
A Hangul syllable is the same length whether you count visible characters, code points or JavaScript string length, so writing “가” 50 times gives exactly 50 characters. Bytes differ by unit when counted with Geuljasu.
| Text | Characters | UTF-8 bytes | Hangul-aware approximate bytes (EUC-KR) |
|---|---|---|---|
| 50 Hangul characters | 50 | 150 | 100 |
Git does not limit the title by bytes, so bytes rarely matter. If your team uses a tool that measures length in bytes, though, remember that 50 Hangul characters are 150 bytes. You can see byte counts separately in the byte calculator.
How many characters are left after the prefix?
A prefix such as fix: or feat(auth): counts every character, spaces included. What remains after the prefix is 50 minus the prefix length.
| Prefix (with trailing space) | Prefix characters | Characters left |
|---|---|---|
fix: | 5 | 45 |
feat: | 6 | 44 |
docs: | 6 | 44 |
feat(auth): | 12 | 38 |
refactor(payment): | 19 | 31 |
The longer the scope name, the fewer characters remain for the description. A short, agreed scope name keeps space for the Korean description.
How long are real Korean titles?
These examples were counted with Geuljasu functions. All counts include spaces and the prefix.
| Title | Characters | Against 50 |
|---|---|---|
fix: 로그인 시 토큰 만료 오류 수정 (fix error when login token expires) | 22 | 28 left |
feat(auth): 로그인 실패 5회 시 계정 잠금 기능 추가 (add account lock after 5 failed logins) | 35 | 15 left |
feat(auth): 로그인 실패가 5회 이상 반복되면 계정을 30분 동안 잠그는 기능을 추가한다 (add a feature that locks the account for 30 minutes when login failures repeat 5 or more times) | 54 | 4 over |
feat(auth): add account lock after five failed login attempts | 61 | 11 over |
Cutting the 54-character title to fit 50 leaves “feat(auth): 로그인 실패가 5회 이상 반복되면 계정을 30분 동안 잠그는 기능을” (feat(auth): a feature that locks the account for 30 minutes when login failures repeat 5 or more times), which is 49 characters once the trailing space is removed. The cut sentence reads awkwardly, so it is better to drop the verb ending and use a noun form such as “feat(auth): 로그인 실패 5회 시 계정 잠금 기능 추가” (add account lock after 5 failed logins), which is 35 characters. Cutting the 61-character English title to 50 ends with the word broken as “log” for the same reason.
How do you shorten a title that runs long?
Keep only what changed in the title and move the reason and conditions to the body. Following the order below keeps the title from going far past 50.
Paste the draft into the character counter to get the count with spaces. To see where the 50 characters end, enter 50 as the limit in the truncate tool and paste the title.
A hook that warns above 50 characters
Git’s commit-msg hook can read the message file just before a commit, so it can be used to warn about title length. The Python code below only warns when the first line is over 50 characters and lets the commit through, matching the fact that 50 is not a hard rule. Run with the 54-character title, it prints “Title 54 chars: 4 over 50.”
#!/usr/bin/env python3
# Warn (but do not block) when the first line is over 50 characters
import sys
with open(sys.argv[1], encoding="utf-8") as f:
title = f.readline().rstrip("\n")
if len(title) > 50:
print(f"Title {len(title)} chars: {len(title) - 50} over 50.", file=sys.stderr)
sys.exit(0)
Name the file commit-msg and give it execute permission for it to run. Python’s len counts code points, so a precomposed Hangul syllable counts as 1, but an emoji made of several code points can differ from the visible character count.
Frequently asked questions
Does Git give an error above 50 characters?
The documentation says “Though not required”, and the SubmittingPatches document calls 50 a soft limit. Git itself does not block a long title. A team’s repository rules or a separate checking tool may block it, though.
Should Korean be written shorter than English?
Counted in characters, one Hangul character and one English character are both 1, so the standard is the same. In the examples above, the 54-character Korean title and the 61-character English title are different content, so their lengths cannot be compared directly.
Can I put an emoji in the title?
The documentation has no rule on emoji, so we could not confirm. An emoji made of several code points can be counted differently by different tools, so check your team’s rule first.
References
- Git official documentation git-commit: https://git-scm.com/docs/git-commit (checked 2026-11-25)
- Git official documentation SubmittingPatches: https://git-scm.com/docs/SubmittingPatches (checked 2026-11-25)
- Geuljasu character count and byte functions (used to calculate the example values)
Before writing a commit title, check its length with the character counter, and use the truncate tool when it needs shortening.