Automate git commit messages with a simple script (that r/git hated)

1 min read Original article ↗

This script's output quality is good and I use it daily.

However, as people on r/git replied loudly, these generated git messages tend to describe what has been done, not why.

They didn't like my opinion, but I'm sticking to it.

My opinion:

-> Requiring a git commit message to provide the intention is an outdated practice.

It's better to write most git commit messages automatically. These commit messages essentially act as search targets.

Then, on the rare occasion I need to understand why someone made a specific historical commit, I can search for it and read the actual code. Reading the actual code is much more efficient way to understand intent than reading an attached git commit message.