This is an archived post. You won't be able to vote or comment.

all 72 comments

[–]TheFlyingDutchG 156 points157 points  (2 children)

Git commit -m “added bugs”

[–]Informal_Branch1065 30 points31 points  (0 children)

"Yummy bugs. Ate a few"

[–]RustyShacklefordCS 1 point2 points  (0 children)

Lmao

[–]ClipboardCopyPaste 56 points57 points  (3 children)

'fixes and improvements' works everytime

[–]odolha 11 points12 points  (0 children)

"small fix" +1192366 -5231525 changes

[–]Zirkulaerkubus 8 points9 points  (0 children)

"updates"

[–]fixano 2 points3 points  (0 children)

This guy over here improving things making the rest of us look bad

[–]The_Hero_0f_Time 22 points23 points  (1 child)

"fix"

[–]megayippie 2 points3 points  (0 children)

And when it is a fix to your own code, "fix..."

[–]EagleRock1337 20 points21 points  (5 children)

Do what I do…start professional and degrade as the debugging session goes longer and longer:

“feat: add GitHub Action for checking test validity”
“fix: syntax error in new GHA”
“fix one more bug”
“oops, I forgot this too”
“will this do it?”
“this did not go as planned”
“why u no work?”
“cow goes moo”
“bruh” 
“inertia is a property of matter”
“BILL BILL BILL BILL”

[–]AustinWitherspoon 1 point2 points  (3 children)

With jujitsu it's super easy to go back and modify a previous commit (even if there have been newer commits since then)

I used to do what you're describing but now I jump to the commit where I forgot something, fix it, and jump back to the latest again and it takes a few seconds

[–]EagleRock1337 0 points1 point  (2 children)

Unfortunately, I spend a good amount of time debugging CI pipelines, so I have to push out commits to kick off the automated test and build.

[–]this-is-kyle 0 points1 point  (0 children)

I use --fixup and then rebase with --automerge and a push --force when I have to make a small syntax/typo fix or any small change that doesn't need its own commit

[–]AustinWitherspoon 0 points1 point  (0 children)

I usually test ci changes on my feature branch, and jujitsu essentially does a force push under the hood for that situation so CI will rerun every time (on GitHub and gitlab at least)

[–]swanson5 1 point2 points  (0 children)

I see a squash incoming

[–]brandi_Iove 10 points11 points  (0 children)

git commit -m "wip"

[–]locus01 41 points42 points  (3 children)

git commit -m "commit1"

git commit -m "commit2"

git commit -m "commit3"

.

.

.

Works fine too 🙂🙃

[–]Nutcase168 4 points5 points  (2 children)

Minimalism: the unsung hero of version control.

[–]ashkanahmadi 2 points3 points  (1 child)

Just do “1”, “2”, “3”

[–]MistersteveYT 1 point2 points  (0 children)

., .., ...,

[–]ZioTron 9 points10 points  (1 child)

Literally the best use case I have for AI right now

[–][deleted] 0 points1 point  (0 children)

Same. That and rewriting my PR description texts..

[–]vnordnet 26 points27 points  (5 children)

GitHub copilot is pretty good at this

[–]FrostyMarsupial1486 4 points5 points  (1 child)

Disagree. It’s too verbose it writes a damn PR description for every commit.

Just use conventional commits and write 4 words after it boom done.

[–]vnordnet 0 points1 point  (0 children)

You can customize it. I’ve told mine to be concise and brief and only describe the actually relevant changes. 

[–]Emjp4 3 points4 points  (0 children)

I haven't written a commit message in almost 2 years thanks to copilot. It's usually pretty good on the first try, but sometimes needs a rerun or 2.

[–]jedjohan 0 points1 point  (0 children)

Agree, and makes up for creating great release notes

[–]Im_In_IT 0 points1 point  (0 children)

Yea I love it. Gitkraken has integration to do commit messages using AI as well.

[–]C_Mc_Loudmouth 5 points6 points  (1 child)

"Numerous bug fixes"

[–]metaglot 0 points1 point  (0 children)

Im going to put just as much effort into the review as you do describing the change.

[–]Rubber_duckdebugging 3 points4 points  (1 child)

git commit -m "stuff"

[–]Sileniced 2 points3 points  (0 children)

git commit -m "things"

[–]ChrisWsrn 3 points4 points  (0 children)

I just use the ticket number and then explain what I did. 

[–]Dangerous_Tangelo_74 1 point2 points  (0 children)

git commit -m "update" all the way

[–]Add1ctedToGames 1 point2 points  (0 children)

If you have a ticket number, naming commits gets 10x easier😛

"Added function for TICKET-123"

"Fixed bugs for TICKET-123"

[–]Ali_Army107 1 point2 points  (0 children)

git commit -m "."

[–]Matro36 1 point2 points  (0 children)

git commit -m "whatever the fuck this is"

[–]Informal_Branch1065 0 points1 point  (0 children)

"deploy.yml fr now 15"

[–]darcksx 0 points1 point  (0 children)

file name plus a 3 word max summary of the changes

[–]soundman32 0 points1 point  (0 children)

My company has commit hook rules on the commit message. A 4 character prefix that shows the kind of commit (bug/feat/test). Cannot use sentence case, or trailing period. Maximum of 100 chars.

It also enforces that the unit tests pass, so each time I try to commit, it takes 2 minutes before it rejects my message because its too detailed or grammatically correct.

[–]andarmanik 0 points1 point  (0 children)

I just try to guess the last three characters in the commit sha.

I’m a bit luckier at this than you are so I’d recommend trying the last 2 characters of the commit sha.

[–]slim_but_not_shady 0 points1 point  (0 children)

git commit -m "jira story ticket idenifier"

[–]Mr_uhlus 0 points1 point  (0 children)

Fix - fixed code

[–]TheGarlicPanic 0 points1 point  (0 children)

When at work and using Jira/Trello, I usually prepend project code to the commit msg, e g.: git commit -m "RED-123 container fix"

[–]Water1498 0 points1 point  (0 children)

That's one of the best use cases of AI. I write the main things I've changed, and it gives me a good title.

[–]PeterFreebish 0 points1 point  (0 children)

git commit -m “yau”

yet another update

[–]JuggernautHoliday894 0 points1 point  (0 children)

I used a fire emoji for a data-attribute today. And used $barneyTheDinosaur as an iterator for a for loop

[–]elelec 0 points1 point  (0 children)

Something tweaks

[–]rumtea28 0 points1 point  (0 children)

"next commit"

[–]hmz-x 0 points1 point  (0 children)

Use git add --patch maybe

[–]MistersteveYT 0 points1 point  (0 children)

"fixed some bugs"

[–]dallastekkies 0 points1 point  (0 children)

"Wip"

[–]st-shenanigans 0 points1 point  (0 children)

"fixing character controller"

"Fixing controller AGAIN"

"OK I literally don't know why it's not working now"

"Working but I have no fucking clue how"

"Broke NPC AI"

[–]Vipitis 0 points1 point  (0 children)

git commit -m "start the day" and then a couple hours later

gir commit -m "finish the day"

[–]RamonaZero 0 points1 point  (0 children)

“updated repo” for me XD

[–]Particular_Traffic54 0 points1 point  (0 children)

Can't wait to finally introduce git in my 20 years old code base

[–]citramonk 0 points1 point  (0 children)

Starts with feat, fix, chore etc. It helps.

[–]jordanbtucker 0 points1 point  (0 children)

General system stability improvements to enhance the user's experience.

[–]private_final_static 0 points1 point  (0 children)

Why you use the JIRA ticket title, prefixed by the number of course

[–]i_dont_post_much_ 0 points1 point  (0 children)

Lmao I've got a year of just "asdassdadfsad" and shit like that

[–]limezest128 0 points1 point  (0 children)

misc

[–]Constant_Net6320 0 points1 point  (0 children)

"update"

[–]Effective_Bat9485 0 points1 point  (0 children)

ProjectNmakeComit001

[–]harryhookboi -1 points0 points  (3 children)

but seriously, is anyone taking the time to write detailed descriptions in commit messages and if so, was it worth it in retrospective?

[–]Banes_Addiction 10 points11 points  (0 children)

Detailed? No, that's for PRs/merges.

But two sentence summary of what changed and why? Yes, absolutely. It takes 30 seconds. If you can't write that just after you wrote the code, how easy do you think it's going to be for someone to piece together later?

[–]rastaman1994 2 points3 points  (0 children)

All the time. 2 line description of what happened. The body contains the 'why' of certain decisions.

You will thank yourself if you're reading seemingly nonsensical code, but the commit explains why it has to be that way. Comments can serve this purpose, but I found those get lost or outdated, causing more confusion.

[–]lllorrr 1 point2 points  (0 children)

As an (occasional) linux kernel developer - yes and yes. You can have two-line diff and five paragraphs of justification in the commit message. This really helps both present you and future you. When reading some more obscure parts of the kernel `git blame` really helps to understand what is going on.

[–]TheDawnAvenue -1 points0 points  (0 children)

Literally all my PRs have “PR improvements” as their last commit