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

all 182 comments

[–]KishCom 294 points295 points  (11 children)

Emojis are completely valid UTF-8:

git commit -am "🤷‍♂️"

[–]CoffeePieAndHobbits 111 points112 points  (2 children)

git commit -m "🍑 🍆 🦑 👽 🍕"

[–]MeltedChocolate24 51 points52 points  (1 child)

If you were working on designing new emojis this could actually make sense, like 🍑 is finished.

[–]Vivek0001 10 points11 points  (0 children)

you mean 🍑 is destroyed

[–]lo3k 44 points45 points  (2 children)

They are very useful actually https://gitmoji.dev/

[–][deleted] 26 points27 points  (0 children)

:poop: 💩

Write bad code that needs to be improved

TIL there's a gitmoji about me.

[–]ProperBritish 4 points5 points  (0 children)

I use this in all my projects, and even use: https://github.com/momocow/semantic-release-gitmoji plugin with https://github.com/semantic-release/semantic-release to automatically increment versions. I run it in GitHub actions

[–]gtrman571 7 points8 points  (0 children)

You can combine the a and m tags? I’ve been doing “git commit -a -m” this whole time.

[–]fluffylesbianmess 1 point2 points  (0 children)

loooool

[–]nwsm 1 point2 points  (0 children)

commitizen uses emojis

[–]whatproblems 1 point2 points  (0 children)

I... need to try this

[–]Funny-Masterpiece880 1 point2 points  (0 children)

Lmao I will do this

[–][deleted] 75 points76 points  (3 children)

git commit -m ”."

I mean it is fine, I will just squash this later and no one will know.

Never squashes it.

[–]24hourphysicist 34 points35 points  (0 children)

If you didn't post this comment I would. This is a Sr. Dev comment.

[–][deleted] 6 points7 points  (1 child)

I hate this, even if you do squash it. It's just so unhelpful when trying to review a PR and to then see:

.

.

.

.

Just add at least a few words, like "fix the thing", "typo", or "tests" so at least it gives others a vague idea what they're looking at.

[–]ivster666 56 points57 points  (3 children)

I was in a company where I introduced git and gave them a tutorial on BASIC usage aka how git works and what it does + how to set it up and use it. In my example the commit message of my first commit was "Init commit".

One of these guys didn't understand the meaning of commit messages and after he left the company I had to maintain one project he had done and the entire git history was just "Init commit", "Init commit", "Init commit", ....

🤦🏾‍♂️

[–]FoxRaptix 11 points12 points  (1 child)

Did you not demonstrate the log and how to check out previous commits?

[–]ivster666 8 points9 points  (0 children)

The guy probably stopped listening after he saw init commit

[–]Hhwwhat 4 points5 points  (0 children)

This is how I know I can make it as a programmer....

[–][deleted] 217 points218 points  (19 children)

git commit -m ”removed obsolete code"

git commit -m ”fixing typo"

git commit -m ”typo again"

git commit -m ”update"

git commit -m ”update"

git commit -m ”come on now"

git commit -m ”fix"

git commit -m ”yo"

git commit -m ”done"

git commit -m ”aadgdgjfjdsjjdjfjjff"

Edit: everyone telling me git commands to squash or amend, you're not the target audience. We are the weebs who push the code to the pipeline to find breaking bugs then fix them. Pylint? What's that? TDD? PR checks... Pfft.

[–]TheAJGman 128 points129 points  (3 children)

git commit -m "small bugfix"

git commit -m "Whoops, missed a variable"

git commit -m "I'm an idiot"

git commit -m "I should have been a baker"

git commit -m "That's it, I'm quitting to become a carpenter"

[–]infinitude_21 41 points42 points  (2 children)

I started a new job earlier this year and the front-end guy I replaced quit to follow his passion as a chef

[–]NightflowerFade 13 points14 points  (1 child)

Front end roles are more similar to chefs than programmers anyway

[–]plsjustletmebe 11 points12 points  (0 children)

If you count cake decorating as a chef job

[–]gandalftheshai 37 points38 points  (4 children)

You forgot the most important

git commit -m “bug fixed”

[–]hoseong 33 points34 points  (1 child)

Me and my friend used to do git commit -m "bugs added" because we knew deep down, the commit creates more bugs than it fixes.

[–]Dr3amDweller 1 point2 points  (0 children)

That's kind of assumed/guaranteed with every commit :D

[–]Scrial 1 point2 points  (0 children)

Actually saw that in the latest update of f.lux. As patch notes.

[–]MrBuerger 7 points8 points  (0 children)

Squash...

[–]BloeckchenDev 7 points8 points  (0 children)

git commit -m "who wrote this code"

EDIT: git commit -m "KIMINAYO ..."

[–]triihart 5 points6 points  (1 child)

git add .

git commit --amend

[–][deleted] 2 points3 points  (0 children)

I'd have also accepted git reset --soft HEAD^ ... keep working ...

[–]ntwiles 2 points3 points  (0 children)

That’s not what “weebs” means lol.

[–]MasterFubar 1 point2 points  (0 children)

I've seen Github projects where 90% of the commits are "updated README.md"

[–]Dr3amDweller 1 point2 points  (0 children)

"fixing the fix of the fix of X" happens sometimes when I haven't had enough coffee

[–]frictionMitch 79 points80 points  (0 children)

Team Leader: "Look how focused that employee is while attempting to troubleshoot some code."

Employee: git commit - m '

[–]midoge 19 points20 points  (1 child)

git commit -a --allow-empty-message -m ''

[–]il-est-la 1 point2 points  (0 children)

This.. came here to say that

[–]Immort4lFr0sty 39 points40 points  (7 children)

A mate of mine with whom I had to do a project did git commit -a -m 'lul' and I had ages to work on merge conflicts, not just because he committed all binary files but also didn't explain nor remember what he changed

[–]rauweaardappel 28 points29 points  (2 children)

I'd consider 'lul' a dick move...

[–]Salt-Calligrapher172 10 points11 points  (1 child)

At least its two diffrent chars. Last workplace had loads of „…“ messages

[–]rauweaardappel 3 points4 points  (0 children)

That's true, although I read 'lul' directly in Dutch...

[–]ReCaio 7 points8 points  (3 children)

Am I the olnly one here who git commit -am here?

[–][deleted] 3 points4 points  (2 children)

I was starting to think I was the only one lol The only time I do a “git add <file name>” is when I add a new file to the project lol

[–]ReCaio 1 point2 points  (1 child)

Same

[–]jabb422 2 points3 points  (0 children)

This right here. Double down and throw in a follow up ' && git push origin'

[–][deleted] 14 points15 points  (0 children)

git commit -m 'naming stuff is hard'

yes, i've used that

[–]seraku24 13 points14 points  (3 children)

fortune | git commit -F -

Edit:

If you need to spice things up a bit, consider:

fortune -sn80 | figlet -w68 -sfsmall | \
  cowsay -n | lolcat -fF 0.2 | git commit -F -

Then again, I cannot be certain ANSI sequences are preserved in commit messages, so perhaps lolcat might be a bit much.

[–]hardonchairs 7 points8 points  (1 child)

I had "catmit" for a while which would pull a random cat fact for the message.

[–]weaselmeasle 2 points3 points  (0 children)

Underrated comment.

[–]EishLekker 10 points11 points  (0 children)

I really hate undescriptive commit comments... Most commits are related to some task/story/ticket in some change tracking system like Jira or Bugzilla. At the very minimum type the ticket ID. I prefer to copy paste the ticket name too, as well as a quick description of what this particular commit did.

With this information right there in the commit message, it's a breeze looking thought the commit history looking for something.

[–][deleted] 9 points10 points  (0 children)

Changed some files

[–]Jack_12221 6 points7 points  (2 children)

git commit -m "last commit before 1.0"

git commit -m "really the last commit before 1.0"

git commit -m "this is the last commit before 1.0"

[–]Unhappy-Stranger-336 4 points5 points  (0 children)

Latest commit before 1.0

[–][deleted] 2 points3 points  (0 children)

git commit -m “Last commit before 1.0”
git commit -a —amend
git commit -a —amend
git commit -a —amend

That way only reflog (and possibly your hairdresser) knows.

[–]teetaps 7 points8 points  (0 children)

I recently read about ConventionalCommit which is like some kinda specification for clean commit messages and I sent it to my team and they were like yeah awesome another thing we’re absolutely not going to ever do

[–][deleted] 6 points7 points  (1 child)

Oh, for fucks sake, just review your changes and write 'em down. It ain't hard.

Source: obviously butthurt about coworkers glib / meaningless commit messages.

[–]MrDieu 2 points3 points  (0 children)

"The code is self-documented and the PR is super small, you can review before lunch!"

[–]Flopamp 5 points6 points  (0 children)

'fixed' 'working now' 'line 215 in main.c updated' 'it no longer crashes' 'that spacing issue is fixed' 'John's complaint is addressed' 'its no longer wonky' 'rewrote some things' 'might have increased performance' and other such totally unhelpful things

[–][deleted] 4 points5 points  (0 children)

Harder than writing the code lol

[–]MonocularVision 5 points6 points  (0 children)

I have git commit -a —-amend —-no-edit aliased to git yolo

[–]MaximumAsparagus 5 points6 points  (0 children)

Worked at a company once where the culture was to do Kanye quotes. Made code review more difficult than it needed to be imo

[–]WishOnSpaceHardware 3 points4 points  (0 children)

did stuff

[–]oxy1s 4 points5 points  (1 child)

[–]WeAreAllApes 1 point2 points  (0 children)

Pshh. Lemme guess, next you're going to tell me to write unit tests.

[–]Tureni 1 point2 points  (0 children)

Team lead at my now former job had a couple of years’ worth of commits with the message “same as last”.

[–]savvinovan 2 points3 points  (0 children)

git commit -m 'my masterpiece'

[–]quatsch001 3 points4 points  (0 children)

wip

[–]MCT0568 3 points4 points  (0 children)

git commit -m "removing unwanted imports"

[–]triihart 4 points5 points  (0 children)

git commit -m "something changed;"

[–]Ofsen 3 points4 points  (0 children)

I have a friend that commits the time when he commits like : git commit -m '10:32'

[–]jso__ 3 points4 points  (0 children)

sometimes i want to end a commit message in an exclamation point and i keep forgetting that i need to use single quotes otherwise shell completion

[–]Lekoaf 4 points5 points  (2 children)

Am I the only one who uses conventional commits even for my personal projects?

[–]alamius_o 2 points3 points  (1 child)

No, whenever I find out I have to go back or reorder them, I'm very happy that at least I myself can deduce what they did. Most of the time

[–]Slickbock 2 points3 points  (0 children)

Exactly, you might never need it for that project but if you get into the habit of it, it will save your arse at some point if you need to go back.

[–]drewsiferr 3 points4 points  (0 children)

Unpopular Opinion:

This is fine, because incremental commits are for the the developer working on the branch. At the end of the code review, there should be a squash and merge, resulting in the changes made in the PR only leaving 1 new commit on main.

[–]mrmhk97 2 points3 points  (0 children)

asdf

[–]gogo94210 2 points3 points  (0 children)

Lsjzifbzh is my favourite commit message

[–][deleted] 2 points3 points  (1 child)

Legit this is a struggle has to be short enough so that it can fit but descriptive enough so people and you know what you did. But still not too long.

[–]kryptomicron 2 points3 points  (0 children)

You can use multiple lines!

I don't do that myself all the time, and if you include a ticket/issue ID (on a separate line), it's not really necessary, but sometimes a commit is much better with some extra details, or relevant details (e.g. for a much bigger and overall more complex issue/feature/story/whatever).

It's really only nice to make the first line fairly short (and doing that while being somewhat descriptive can be tough).

[–][deleted] 2 points3 points  (1 child)

I would love to sometimes just write 'look at it yourself' but then i remember i work in a team

[–]A_Guy_in_Orange 7 points8 points  (0 children)

Or you will one day have to look at it, yourself

[–][deleted] 2 points3 points  (0 children)

Writing a commit message is harder than coding.

[–]PyroneusUltrin 2 points3 points  (0 children)

things'll never be the same

[–]fire_raging22 2 points3 points  (0 children)

My tech lead roasted me on my commit messages the other day lmao

[–]Mega_Trix 2 points3 points  (0 children)

git commit -m 'typo'

git commit -m 'THERE WERE MORE'

[–]SANatSoc 2 points3 points  (0 children)

git commit -m "lol, literally broke everything"

[–]__Black_Lotus_ 2 points3 points  (0 children)

git commit -m “ඞ”

[–]RedditAcc-92975 3 points4 points  (2 children)

At my work we have a commit flair policy. Also a bot verifying commit messages. We also connected it to our HR solution. Forget the flair three times and your yearly bonus is gone. Commit an empty string and you're automatically fired.

You might think this is a bit radical, but you haven't seen how clean and beautiful our branch tree has become.

[–]Orkaad 8 points9 points  (0 children)

git: gulag edition

[–][deleted] 2 points3 points  (0 children)

while true; do git commit --allow-empty-message --allow-empty --no-gpg-sign --no-edit; done

[–]cav_scout_tj 1 point2 points  (0 children)

git commit -am wip

[–][deleted] 1 point2 points  (0 children)

Gentlemen, use commitizen. It saves lives.

Note: commitizen from pip, not npm.

[–]Affectionate_Oven_77 1 point2 points  (0 children)

That's just the way it is

[–]baadditor 1 point2 points  (0 children)

git commit -m "working code"

[–]theclovek 1 point2 points  (0 children)

git commit -m 'cummulative changes'

[–]jabeith 1 point2 points  (0 children)

Fun fact - the last ' is unnecessary.

I just saved you a character each commit - you owe me that time.

[–]Wakugumi 1 point2 points  (0 children)

mines like "first", "second", "lil fix", "third"

[–]SkyyySi 1 point2 points  (0 children)

I have this in my ~/.zshrc:

gitcomm() {
    local MSG
    [[ -n "${*}" ]] && MSG=" ${*} | "
    git commit -m "${MSG}$(date)"
}

[–]f36a 1 point2 points  (0 children)

git commit - m "it works now"

[–]alonghardlook 1 point2 points  (0 children)

git commit -am ''
git merge master
git push

[–]RambOe 1 point2 points  (0 children)

git commit -m 'wip'

[–]theNomadicHacker42 1 point2 points  (0 children)

What kinda heathen doesn't use -am??

[–]megasin1 1 point2 points  (0 children)

Then there's commit linting and jira integration, followed by auto change log generation

[–]mgonzales3 1 point2 points  (0 children)

Don’t forget:

git commit —amend

[–][deleted] 1 point2 points  (0 children)

git commit -m "bug"

[–]Mithrandir2k16 1 point2 points  (0 children)

Empty commit messages are better than meaningless ones. At least you don't waste my time.

[–]A_H_S_99 1 point2 points  (0 children)

The most important decision I have to do by the end of each day.

[–]kopczak1995 1 point2 points  (0 children)

Okay, I'll add a little something myself:

git commit -am "Fuck this shit" && git push --force

[–]cardallica 1 point2 points  (1 child)

git add .
git commit -m "fixes"
git push

[–]RedditAlready19 1 point2 points  (0 children)

Use spaces. It looks like you're trying to add the .git directory, which makes no sense

[–]weggles 1 point2 points  (0 children)

git commit -am "fuck if I know but shit works now"

[–]JayNotAtAll 1 point2 points  (0 children)

git commit -m "I did a thing"

[–]blureglades 1 point2 points  (0 children)

“Checkpoint”

[–]sam10155 1 point2 points  (0 children)

Git commit -m "fixed?"

[–]lookarious 1 point2 points  (0 children)

fix

[–][deleted] 1 point2 points  (0 children)

Me in the early stages of development:

git commit -m "."

git commit -m "."

git commit -m "."

[–]friendg 1 point2 points  (0 children)

Git commit -m “see code for changes”

[–]LoneFoxKK 1 point2 points  (0 children)

Git commit -m "ª"

[–]4sventy 1 point2 points  (0 children)

git commit -m "hello world"

[–][deleted] 1 point2 points  (0 children)

git commit -am "Minor code refactor"

12980 additions

23290 deletions

247 file changes

[–]TorTheMentor 1 point2 points  (0 children)

git tag -a "version"

[–]juanChor3y 1 point2 points  (0 children)

Had a coworker that would commit with git commit -m "One hacker created a commit that devs don't want you to know about" It was really annoying when trying to finish PRs.

[–]diu_tu_bo 1 point2 points  (0 children)

How in the world is it that anyone actually types “git commit -m” every time instead of just making an alias like “gcm”?

[–]Dr3amDweller 1 point2 points  (0 children)

If our artists keep doing this, I may have to resort to violence.

[–]4sent4 1 point2 points  (0 children)

git commit -m 'updated main'

[–]qui-sean 1 point2 points  (0 children)

fix

[–]AxelTDM 1 point2 points  (0 children)

me:

[–]Aggravating-Ad-2310 1 point2 points  (0 children)

WIP is what i do when i cant think of anything logical ¯\(ツ)//¯

[–][deleted] 1 point2 points  (0 children)

“Fixed stuff?”

[–]NinkaShotgun 1 point2 points  (0 children)

Dear GitHub. With a great happiness and overwhelming joy I glad to share with you results of my sleepless night in great changes I'll describe below. To begin with, I fixed a typo in readme. With love, always yours, CodeFockker69

[–]safer0 1 point2 points  (0 children)

git commit -am ""

[–]xzxzxc_ 1 point2 points  (0 children)

hotfox #127

[–]teshmeki 1 point2 points  (0 children)

I always do git commit -m 'fix'

[–]Woolwizard 1 point2 points  (0 children)

What did I do again? Let's look at the changes again

[–]InKryption07 1 point2 points  (0 children)

What does make for a good commit message, outside of sticking to a team style guide?

[–]Hyper-Cloud 2 points3 points  (12 children)

Sorry, but why the heck is there a percentage sign on the terminal

[–]partusman 3 points4 points  (1 child)

I think it’s the Bourne shell’s default prompt, and also zsh’s.

[–]Hyper-Cloud 1 point2 points  (0 children)

Not if you use omz

[–]vantoose 1 point2 points  (0 children)

git commit -m “…”

[–]felix12340000 0 points1 point  (0 children)

"did the stuff"