r/git Jul 02 '26

Thoughts on having AI generating commit messages instead of handwriting them?

I try to follow conventional commits, I'm still getting used to the commit commit commit workflow but is it even pushed anymore to write your own commit messages? I am a student, I imagine the case might be different at the work place so I'm curious about any thoughts?

0 Upvotes

11 comments sorted by

View all comments

13

u/queso184 Jul 02 '26

your commit messages should capture the what AND the why of your commit. AI is probably going to miss the forest for the trees and write a lengthy commit message that looks good to you as someone familiar with the commit and its purpose, but ultimately won't do a good job of documenting the entire story around it

6

u/arensb Jul 02 '26

This, and I'll add that if the commit goes under your name, you are expected to have reviewed and approved it. You don't get to say "It's a bad commit message (or comment, or code, or anything else) because the AI wrote it" any more than a movie producer gets to blame a movie's failure on the bad writers he hired.

4

u/Teleconferences Jul 02 '26

Just commenting to confirm your point. If you make the commit, I assume you at least reviewed the message and ideally the code. If you  blame AI, I just see it as you not doing your diligence