On good commit messages

https://xkcd.com/1296/

Commit messages are critical for others, including your future self, to understand the motivation behind the changes that were implemented. Combined into the history of your file and repository, those messages help to understand the content and its evolution over time

So what is a good commit message? Well I think the answer actually starts with what is a good commit? Which actually begins when you are choosing how to group files during the staging.

A good commit:

A good commit message:

Note: you can add a body to a commit message if you want to describe the content in greater details, but keep the first line (message) separated.

References

  • How to Write a Git Commit Message: https://chris.beams.io/posts/git-commit/


Bren School logo

The original parts of this work are licensed under a Creative Commons Attribution 4.0 International License.

This website was made with quarto by Posit.