# How to Write Professional Git Commit Messages: 4 Essential Rules

DevFeed: [How to Write Professional Git Commit Messages: 4 Essential Rules](<https://devfeed.tech/articles/how-to-write-professional-git-commit-messages-4-essential-rules-130190.md>)

Original publisher: [Read original article](<https://hackernoon.com/how-to-write-professional-git-commit-messages-4-essential-rules?source=rss>)

Author: William

Published: 2026-11-12T07:00:35Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [version-control](<https://devfeed.tech/topics/version-control.md>), [engineering-culture](<https://devfeed.tech/topics/engineering-culture.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [body](<https://devfeed.tech/tags/body.md>), [bug](<https://devfeed.tech/tags/bug.md>), [bug-fix](<https://devfeed.tech/tags/bug-fix.md>), [button](<https://devfeed.tech/tags/button.md>), [commit](<https://devfeed.tech/tags/commit.md>), [commits](<https://devfeed.tech/tags/commits.md>), [database](<https://devfeed.tech/tags/database.md>), [database-schema](<https://devfeed.tech/tags/database-schema.md>), [developer](<https://devfeed.tech/tags/developer.md>), [git](<https://devfeed.tech/tags/git.md>), [git-5072-rule](<https://devfeed.tech/tags/git-5072-rule.md>), [git-commit](<https://devfeed.tech/tags/git-commit.md>), [github](<https://devfeed.tech/tags/github.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [messages](<https://devfeed.tech/tags/messages.md>), [professional-github](<https://devfeed.tech/tags/professional-github.md>), [rules](<https://devfeed.tech/tags/rules.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [version](<https://devfeed.tech/tags/version.md>), [version-control](<https://devfeed.tech/tags/version-control.md>), [write](<https://devfeed.tech/tags/write.md>)

## AI overview

The article recommends four practices for readable Git history: write subjects in the imperative mood, as in "Fix bug," so they describe what the commit will do; keep the subject to 50 characters and, when needed, add a body after a blank line wrapped at 72 characters; use Conventional Commit prefixes such as `feat:`, `fix:`, `chore:`, and `refactor:` to categorize changes and support changelog generation and regression tracing; and keep each commit atomic so reverting one change does not undo an unrelated fix. These are presented as conventions the author is learning to apply to a more professional GitHub presence.

## Source excerpt

To write professional GitHub commits, learn to follow the unspoken rules of version control.