
February 12, 2024
This post was previously on Medium
Git is an open-source version control tool used to manage changes in software projects, from small to large scale. Git is valued for its ability to enhance the speed and efficiency of version control and team collaboration.
Each time you make a commit with Git, the project is saved in a specific state, allowing recovery to that state if any issues arise during updates or when adding changes on top of the previous state.
In every commit, the commit message is used to provide a brief description of the changes made. These messages are not only read by the commit owner but also by project team members. Therefore, writing clear and easy-to-understand commit messages for other team members is crucial.
Tips and tricks can help create more informative commit messages, aiding the team in understanding the changes made and preventing confusion in the future.

Commit Message Structure
Although you are free to write commit messages as you like, here is a structure you can use with your team:
Let's explain the structure above:
<commit-type>
The commit type indicates the kind of change you have made. The commit type can be:
<subject>
Write a short description of the commit with the following rules:
<body>
Explain what changes you made and why you made them. Make sure the text does not exceed 80 characters. Your team members might not read lengthy texts, so keep it as concise as possible.
<footer>
Use the footer to explain new issues that arise after the changes are complete or provide comments, notifications, and warnings to other developers and testers.
For example, see below:
With a well-structured commit message, development teams can easily understand the changes made, the purpose of those changes, and any relevant additional information. This helps track the project's change history and facilitates collaboration among team members.