Git Commit Title 50 Characters: How Much Korean Fits?

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.

A woman polishing a short message on a laptop 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”.

ItemStandardSource
Title lengthOne line of no more than 50 charactersgit-commit docs, DISCUSSION
Nature of the 50Soft limit (not enforced)SubmittingPatches docs
Between title and bodyOne blank linegit-commit docs, DISCUSSION
What counts as the titleText up to the first blank linegit-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.

TextCharactersUTF-8 bytesHangul-aware approximate bytes (EUC-KR)
50 Hangul characters50150100

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 charactersCharacters left
fix: 545
feat: 644
docs: 644
feat(auth): 1238
refactor(payment): 1931
Title characters left after a prefix (50-character basis)fix:: 45 chars; feat:: 44 chars; feat(auth):: 38 chars; refactor(payment):: 31 chars01020304050fix:45 charsfeat:44 charsfeat(auth):38 charsrefactor(payment):31 chars
Title characters left after a prefix (50-character basis) — A prefix that includes a scope takes more of the title

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.

TitleCharactersAgainst 50
fix: 로그인 시 토큰 만료 오류 수정 (fix error when login token expires)2228 left
feat(auth): 로그인 실패 5회 시 계정 잠금 기능 추가 (add account lock after 5 failed logins)3515 left
feat(auth): 로그인 실패가 5회 이상 반복되면 계정을 30분 동안 잠그는 기능을 추가한다 (add a feature that locks the account for 30 minutes when login failures repeat 5 or more times)544 over
feat(auth): add account lock after five failed login attempts6111 over
Characters in example commit titles (50-character basis)Short Korean title: 22 chars; Korean title with scope: 35 chars; Long Korean title: 54 chars; English title with scope: 61 chars0204060Short Koreantitle22 charsKorean titlewith scope35 charsLong Koreantitle54 charsEnglish titlewith scope61 chars
Characters in example commit titles (50-character basis) — Sentence-style Korean titles reach 50 quickly because of the prefix and verb endings

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.

Order for shortening a long commit titleWrite a draft title → 50 characters or fewer?; 50 characters or fewer? → Commit (Yes); 50 characters or fewer? → Shorten verb ending to a noun form (No); Shorten verb ending to a noun form → Move reason and conditions to the body; Move reason and conditions to the body → Shorten the scope name; Shorten the scope name → 50 characters or fewer?YesNoWrite a draft title50 characters orfewer?Shorten verb endingto a noun formCommitMove reason andconditions to thebodyShorten the scopename
Order for shortening a long commit title — Title as a one-line summary, explanation in the body

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

Before writing a commit title, check its length with the character counter, and use the truncate tool when it needs shortening.

Basis: Git official documentation git-commit "DISCUSSION" (first line of the commit message no more than 50 characters; text up to the first blank line is the commit title), Git official documentation SubmittingPatches (50 characters is the soft limit), Geuljasu character count and byte functions. Sources checked on 2026-11-25. Byte values in this post are calculated the same way as the Geuljasu tools; real SMS services may follow different rules set by carriers and sending providers.

The full counting rules are on Methods and standards.

Tools related to this post