# How Square writes commit messages

DevFeed: [How Square writes commit messages](<https://devfeed.tech/articles/how-square-writes-commit-messages-15678.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/how-square-writes-commit-messages>)

Author: Logan Johnson

Published: 2017-04-18T17:51:45Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [engineering-culture](<https://devfeed.tech/topics/engineering-culture.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [bug](<https://devfeed.tech/tags/bug.md>), [change](<https://devfeed.tech/tags/change.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [commit](<https://devfeed.tech/tags/commit.md>), [commits](<https://devfeed.tech/tags/commits.md>), [communication](<https://devfeed.tech/tags/communication.md>), [context](<https://devfeed.tech/tags/context.md>), [design](<https://devfeed.tech/tags/design.md>), [docs](<https://devfeed.tech/tags/docs.md>), [effective-communication](<https://devfeed.tech/tags/effective-communication.md>), [empathy](<https://devfeed.tech/tags/empathy.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [explain](<https://devfeed.tech/tags/explain.md>), [git](<https://devfeed.tech/tags/git.md>), [messages](<https://devfeed.tech/tags/messages.md>), [square](<https://devfeed.tech/tags/square.md>)

## AI overview

Square treats commit messages as a record of the change's context and motivation, helping reviewers assess intent and future developers understand past decisions. Explain the problem or feature, why the change is needed, and how the fix addresses it; for unusual or infrastructure changes, record why the approach is safe. Messages should stand on their own because links and tools can disappear, though cross-references can add context. Put a concise summary in the first 50 characters, include a Jira ID when possible, leave a blank line before the body, and wrap lines around 72 characters (under 78). Use design docs for broad decisions, code comments for code behavior and rationale, commit messages for code changes, and pull request comments for reviewer concerns that future readers do not need. Avoid terse labels, code-mechanics descriptions, and unexplained literal edits.

## Source excerpt

Explain the change.