Often commit messages are tied to one or another Jira ticket or such. For example "ZOO-123: Fix to RabbitMQ binder names." This ties that commit with Jira ticket ZOO-123 that either is about changes to RabbitMQ messaging or about fixing an issue with said messaging. Also, some companies use conventional commits. It is just a way of formatting your commit message so that automated tools can process commits in an easier way. Read about it from https://www.conventionalcommits.org/en/v1.0.0/ An example would be "fix(ZOO-123): Fix to RabbitMQ binder names." There the fix() keyword shows that the commit was for fixing something. A feat() keyword can be for adding a new feature or for working with some new functionality. For example "feat(SCHOOL-23): Add Japanese language." The commit message itself is often in imperative present tense. For example "Fix to" instead of "Fixed". The commit should give a summary of the change. What was done. Keep it concise and clear. Do not add a whole essay. But also do not just write "Added more changes." Which changes? Why? Read about it from https://blog.devgenius.io/make-a-meaningful-git-commit-message-with-semantic-commit-message-b39a79b13aa3 Avoid frustration and all kind of nonsense in the commits. Yes, when the stuff does not work and your earlier commit did not fix it then writing "Get working already!!!!!" or "wgo8g7tfwo82w37fdto238gd" is not a rational way how to deal with the issue. It is unprofessional. In the previous company I worked at, we had one guy who raged in his commit messages. Avoid adding too many details. Instead of writing "Fix to UserNotificationIntegrationTest, BillingIntegrationTest, BaseIntegrationTest, RabbitMQPublisherIntegrationTest" better pick "Fix to integration tests". Which tests, that can be seen from the git commit itself. Neither go with "Added an email support to UserNotificationService by introducing emailSender() method that uses angus-mail library" just write "Add support to send user notifications via email" Some good and bad examples are in https://chris.beams.io/git-commit Also, it does not really help when you finish your whole project and then add it via a single commit that has a commit message of "Initial commit". Answer from mandzeete on reddit.com
🌐
Medium
medium.com › @iambonitheuri › the-art-of-writing-meaningful-git-commit-messages-a56887a4cb49
The Art of Writing Meaningful Git Commit Messages | by theurikarue | Medium
August 14, 2024 - Commits serve as an archive of changes. They can become an ancient manuscript to help us decipher the past, and make reasoned decisions in the future. I hope this article has helped you go from ‘Tweaked a few things’ to meaningful messages that benefit everyone on your team. ... [2] https://medium.com/front-end-weekly/how-to-write-good-git-commit-messages-like-a-pro-2c12f01569d9
🌐
DevGenius
blog.devgenius.io › a-guide-to-writing-good-commit-messages-in-git-4e513e887b6b
A guide to writing good commit messages in Git | by Sascha Peter Bajonczak | Dev Genius
March 4, 2022 - This article will help you to create a good commit message. It will give you a (for me) good pattern to see on the first look, what happened in this commit message.
Discussions

How to be a Pro at writing a Commit Message!
Chris Beams has a written an excellent article called How to Write a Git Commit Message on this. An excerpt from the original article : The seven rules of a great git commit message Separate subject from body with a blank line Limit the subject line to 50 characters Capitalize the subject line ... More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
8
May 16, 2016
Best practices for writing Git commit messages?
Often commit messages are tied to one or another Jira ticket or such. For example "ZOO-123: Fix to RabbitMQ binder names." This ties that commit with Jira ticket ZOO-123 that either is about changes to RabbitMQ messaging or about fixing an issue with said messaging. Also, some companies use conventional commits. It is just a way of formatting your commit message so that automated tools can process commits in an easier way. Read about it from https://www.conventionalcommits.org/en/v1.0.0/ An example would be "fix(ZOO-123): Fix to RabbitMQ binder names." There the fix() keyword shows that the commit was for fixing something. A feat() keyword can be for adding a new feature or for working with some new functionality. For example "feat(SCHOOL-23): Add Japanese language." The commit message itself is often in imperative present tense. For example "Fix to" instead of "Fixed". The commit should give a summary of the change. What was done. Keep it concise and clear. Do not add a whole essay. But also do not just write "Added more changes." Which changes? Why? Read about it from https://blog.devgenius.io/make-a-meaningful-git-commit-message-with-semantic-commit-message-b39a79b13aa3 Avoid frustration and all kind of nonsense in the commits. Yes, when the stuff does not work and your earlier commit did not fix it then writing "Get working already!!!!!" or "wgo8g7tfwo82w37fdto238gd" is not a rational way how to deal with the issue. It is unprofessional. In the previous company I worked at, we had one guy who raged in his commit messages. Avoid adding too many details. Instead of writing "Fix to UserNotificationIntegrationTest, BillingIntegrationTest, BaseIntegrationTest, RabbitMQPublisherIntegrationTest" better pick "Fix to integration tests". Which tests, that can be seen from the git commit itself. Neither go with "Added an email support to UserNotificationService by introducing emailSender() method that uses angus-mail library" just write "Add support to send user notifications via email" Some good and bad examples are in https://chris.beams.io/git-commit Also, it does not really help when you finish your whole project and then add it via a single commit that has a commit message of "Initial commit". More on reddit.com
🌐 r/learnprogramming
28
85
December 18, 2025
Help me craft the perfect commit message
Only your last one is any good - it explains why you're doing it. The others do not explain why the file is dead or garbage so it is hard to know if it is correct. I generally prefer to reference the commit where the mistake happened so the new commit can be reviewed with some context - maybe you're making another mistake and removing the wrong file? I like to think of the reviewer and ensure they have enough information in the commit message to review and understand what you are doing and can make a judgement that it is correct. Try not to assume too much knowledge of the reviewer. Even if there is no reviewer - you're just committing directly - the future you is a reviewer who may need to look at history and understand why something was done. Leave yourself and others breadcrumbs (or whole pieces of toast if you can) to understand later why things have happened. More on reddit.com
🌐 r/git
6
4
November 2, 2022
Does it make sense to write commit messages that include notes to yourself on how the project is going?
dear Git, It's been 3 weeks. My code reeks of the sweat I pour into the keyboard. I haven't written a non-infinite loop since Jill was here. This may be the last you hear from me. I'll always look fondly back at our days writing hello world. Yours infinitely, More on reddit.com
🌐 r/learnprogramming
66
102
February 10, 2023
🌐
Conventional Commits
conventionalcommits.org › en › v1.0.0
Conventional Commits
No! If you use a squash based workflow on Git lead maintainers can clean up the commit messages as they’re merged—adding no workload to casual committers.
🌐
Baeldung
baeldung.com › home › git › best practices for git commit message
Best Practices for Git Commit Message | Baeldung on Ops
March 28, 2024 - To summarize, here’s how we can achieve great Git commit messages: Create a subject and a description (separated with a blank line) ... In this tutorial, we’ve studied the main best practices for writing good Git commit messages.
🌐
Medium
medium.com › @nawarpianist › git-commit-best-practices-dab8d722de99
Git commit best practices
December 5, 2017 - It is recommended that the use of git add . and git add -A should be in moderation and instead the focus should be on making frequent commits. Never commit incomplete code. This goes against the concept of committing.
🌐
freeCodeCamp
forum.freecodecamp.org › t › how-to-be-a-pro-at-writing-a-commit-message › 1023
How to be a Pro at writing a Commit Message! - The freeCodeCamp Forum
May 16, 2016 - An excerpt from the original article : The seven rules of a great git commit message Separate subject from body with a blank line Limit the subject line to 50 characters Capitalize the subject line Do not end the subject line with a period Use ...
Find elsewhere
🌐
Reddit
reddit.com › r/learnprogramming › best practices for writing git commit messages?
r/learnprogramming on Reddit: Best practices for writing Git commit messages?
December 18, 2025 -

Hi developers,

I’m learning Git and GitHub, and I’m wondering about best practices for writing commit messages. I often write things like “I did XYZ, or I added image of cow with changes to xyz” but in a real production or work environment, what’s the recommended way to write clear, professional commit messages?

Top answer
1 of 18
66
Often commit messages are tied to one or another Jira ticket or such. For example "ZOO-123: Fix to RabbitMQ binder names." This ties that commit with Jira ticket ZOO-123 that either is about changes to RabbitMQ messaging or about fixing an issue with said messaging. Also, some companies use conventional commits. It is just a way of formatting your commit message so that automated tools can process commits in an easier way. Read about it from https://www.conventionalcommits.org/en/v1.0.0/ An example would be "fix(ZOO-123): Fix to RabbitMQ binder names." There the fix() keyword shows that the commit was for fixing something. A feat() keyword can be for adding a new feature or for working with some new functionality. For example "feat(SCHOOL-23): Add Japanese language." The commit message itself is often in imperative present tense. For example "Fix to" instead of "Fixed". The commit should give a summary of the change. What was done. Keep it concise and clear. Do not add a whole essay. But also do not just write "Added more changes." Which changes? Why? Read about it from https://blog.devgenius.io/make-a-meaningful-git-commit-message-with-semantic-commit-message-b39a79b13aa3 Avoid frustration and all kind of nonsense in the commits. Yes, when the stuff does not work and your earlier commit did not fix it then writing "Get working already!!!!!" or "wgo8g7tfwo82w37fdto238gd" is not a rational way how to deal with the issue. It is unprofessional. In the previous company I worked at, we had one guy who raged in his commit messages. Avoid adding too many details. Instead of writing "Fix to UserNotificationIntegrationTest, BillingIntegrationTest, BaseIntegrationTest, RabbitMQPublisherIntegrationTest" better pick "Fix to integration tests". Which tests, that can be seen from the git commit itself. Neither go with "Added an email support to UserNotificationService by introducing emailSender() method that uses angus-mail library" just write "Add support to send user notifications via email" Some good and bad examples are in https://chris.beams.io/git-commit Also, it does not really help when you finish your whole project and then add it via a single commit that has a commit message of "Initial commit".
2 of 18
14
What's professional really depends on the workflow used at a job. If the workflow requires pull requests to get anything to the main branch, then you need to make clear PR descriptions while the commit messages are mostly for yourself
🌐
Hashnode
pierrehenry.hashnode.dev › commit-message-guidelines
Commit Your Code The Right Way - Git Commit Message Guidelines
October 15, 2025 - Commit messages play a big role in the understanding of every change. They should be short, clear and explicit. They should clearly say what happened as well as the reason/motivation behind the change. Ask yourself "What are the changes done for?".
🌐
Codefinity
codefinity.com › blog › 7-Best-Practices-of-Git-Commit-Messages
7 Best Practices of Git Commit Messages
Git Official Documentation - Commit Guidelines: The official Git documentation provides guidelines on writing meaningful commit messages and covers best practices and conventions widely followed in the Git community;
🌐
GitKraken
gitkraken.com › home › learn › best practices › writing a good git commit message
How to Write a Good Git Commit Message | Git Best Practices
November 14, 2022 - From here, you can apply the Git commit message best practices you’ve learned by using git commit -m <Summary>, or the more detailed git commit -m <Summary> -m <Description>. Deciding which of these to use will depend on the standardized commit message mechanics agreed upon by your team, or the project’s default message structure.
🌐
Datree
datree.io › resources › git-commit-message
The practical guide to git commit message conventions | Datree.io
March 17, 2019 - Best practices for writing git commit messages - cheatsheet included. Read how to optimize git commit messages to improve your development productivity.
🌐
European Commission
ec.europa.eu › component-library › v1.15.0 › eu › docs › conventions › git
Git Commit Guidelines | EU System
We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history.
🌐
GitHub
gist.github.com › Aditi3 › a7a1ddd1ecef73dab548f7955210cfff
Git Commit Best Practices · GitHub
feat: add foo support ^--^ ^------------^ | | | +-> Summary(commit message subject line) in present tense | +-------> Type: chore, docs, feat, fix, refac, style, or test ... chore: regular code maintenance and updating grunt tasks etc; no production code change (eg: change to .gitignore file or .prettierrc file)
🌐
GitConnected
levelup.gitconnected.com › git-best-practices-for-writing-effective-git-commit-messages-7d02511f7583
Git: Best Practices for Writing Effective Git Commit Messages | by Ishara Amarasekera | Level Up Coding
December 10, 2024 - In this guide, we’ll explore the importance of Git commit messages, best practices for writing them, and the different types of commits used to keep your project’s history clear and consistent.
🌐
Medium
medium.com › helpshift-engineering › how-to-write-a-good-commit-message-9d2d533b9052
Understand how to write a good commit message through memes 😉 | by Hritik Jaiswal | Medium
December 5, 2021 - A commit message is comprised of a subject ( i.e summary), body, and footer, with both the body and footer being optional. Limit the subject line to 50 characters. The subject is a single line that best sums up the changes made in the commit.
🌐
Thoughtbot
thoughtbot.com › blog › the-art-of-writing-meaningful-git-commit-messages
The art of writing meaningful Git commit messages
May 22, 2025 - It should be short; clear; concise; descriptive; meaningful; and communicate the context surrounding a change. Whenever possible, it’s best to avoid framing the message in terms of what you did as well as how you did it.
🌐
Tbaggery
tbaggery.com › 2008 › 04 › 19 › a-note-about-git-commit-messages.html
tbaggery - A Note About Git Commit Messages
April 19, 2008 - The blank line separating the summary from the body is critical (unless you omit the body entirely); tools like rebase can get confused if you run the two together. Write your commit message in the imperative: "Fix bug" and not "Fixed bug" or "Fixes bug." This convention matches up with commit ...
🌐
Medium
medium.com › compass-true-north › writing-good-commit-messages-fc33af9d6321
Writing Good Commit Messages. At Compass, as we continually improve… | by Ben Hoyt | Compass True North | Medium
September 26, 2018 - One minor point about the message above: it’s considered good git practice to use the imperative mood (yep, I had to look up the term) when writing the summary line. So “Add loading states” rather than “Adding…”. The commit message then describes what this commit will do when applied — following this means a consistent style in your commit messages, and it’s also shorter.
🌐
freeCodeCamp
freecodecamp.org › news › writing-good-commit-messages-a-practical-guide
How to Write Good Commit Messages: A Practical Git Guide
September 10, 2024 - To create a useful revision history, teams should first agree on a commit message convention to use. This also applies to personal projects. Recently on Hashnode I asked, "Which commit message convention do you use at work?" and I got some amazing re...
🌐
DEV Community
dev.to › wallacefreitas › best-practices-to-make-a-good-commit-writing-clean-effective-commit-messages-5eg9
Best Practices to Make a Good Commit: Writing Clean, Effective Commit Messages - DEV Community
August 26, 2024 - ↳ git diff: Review the changes you've made before committing to catch any mistakes or unintended modifications. ... The ability to write quality commits greatly improves both the productivity of your team and the maintainability of your codebase. You may produce a clear, intelligible, and helpful project history by adhering to these best practices, writing descriptive messages, utilizing the imperative mood, mentioning pertinent issues, and keeping commits modest and focused.