-3 points
*

When there’s a limit to the size of a commit message it does make it difficult to actually list all the changes, so sometimes this is all you can write.

I know in theory you’re meant to commit little and often, but in practice it doesn’t always work out that way.

permalink
report
reply
10 points

Even if you have a big commit, you can always write something more descriptive than this. And commit messages can be huge, so the limit shouldn’t be an excuse to write a useless message.

permalink
report
parent
reply
9 points

For those wondering how to exceed the 70 (80) recommended character limit and still follow best practices:

  1. Write the title on the first line, keep below 70 characters.
  2. Make two (2) newlines
  3. Write one or more descriptive paragraphs.

The first line will be shown as commit message, and the full text can usually be viewed by checking out the commit. Sentences can span multiple lines, but try to keep the line length below 70 characters for best readability.

This off the top of my head, so feel free to correct me if I’ve misremembered the best practices.

permalink
report
parent
reply
4 points

I generally write a single line summary and then a list of the specifics like:

Did stuff (except more detailed than that)
 - The first thing I did
  - Maybe some more detail about the first thing because there's a rationale to explain
 - The second thing I did
 - Third thing

Etc.

permalink
report
parent
reply
2 points

Commit messages of my personal projects are filled with just “fix”. Life is too short to write a proper commit message

permalink
report
reply
1 point

About what my coworkers do but even worse with stuff like “save” and “fix”

permalink
report
reply
29 points

Every one is using AI to make funny pictures. This is what they should be using it for. Look at my diff, generate a commit message.

permalink
report
reply
14 points

If you don’t know what you’ve done within a commit, it probably shouldn’t be a single commit, with or without AI Although if you’re talking about using AI to make funny commit-messages…

permalink
report
parent
reply
1 point

Doesn’t mean you can’t use text inference to make your messages better

permalink
report
parent
reply
1 point

Ok Eugene, we get it.

permalink
report
parent
reply
1 point

We’re doing that too :)

permalink
report
parent
reply
31 points

The people that do this are either inept or experts, no inbetween

permalink
report
reply
3 points

just a hobbyist here, but wouldn’t this actually be a good use for AI? Just copy the code and “provide a git committ title for this code”?

permalink
report
parent
reply
1 point

Yep this is already a thing built into code editors like webstorm :)

permalink
report
parent
reply
7 points

AI might be able to write what you did but not why you did it

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.4K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments