Standardization of commit messages #198
delisma
started this conversation in
Best Practices (Open Discussions)
Replies: 1 comment
-
|
I'm a fan of linking commits to issues or discussions so simple commit messages with linking to an issue #. Maybe a simple Example: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A well-crafted Git commit message is the best way to communicate context about a change to other developers working on the project and to your future self as well. Commit messages can adequately communicate why a change was made, and understanding that makes development and collaboration more efficient.
How should we write commit messages
Only using git commit -m "Fix X to allow Y to use Z" with just a subject and no extra description could be great for small and clear fixes like git commit -m "Fix typo in README.md. But in cases of more extensive changes, we would need to add some extra details.
How to write good commit messages
There are several conventions used by different teams and developers to write good commit messages. Let's outline some general rules and tips for writing commit messages–we have to decide what convention we want to follow.
Other practices to consider
or
or
or
or
Conclusion
The benefits of writing good commit messages are not only limited to the team, but also expand to ourself and future contributors.
Beta Was this translation helpful? Give feedback.
All reactions