Cover image for Do You Cuss In Your Commit Messages?

Do You Cuss In Your Commit Messages?

jackharner profile image Jack Harner πŸš€ ・1 min read

Do You Cuss In Your Commit Messages?

πŸ”² Never

πŸ”² Sometimes

βœ… All The Fucking Time

Let 'Er Rip

Most of my commit messages don't see the light of day, so I'm like a sailor in those fuckers.

git commit -m "What The Fuck!?! Why wont this god damn piece of shit fucking work"


git commit -m "Holy fucking shit it actually fucking works"

Gotta Keep It Professional

I get that in your enterprise and business level Repos you probably need to keep it professional.

  • Does your company have rules about this? or is it more of a general guideline?
  • Anybody have stories of companies with a culture that emphasizes cussing?
  • Any issues arise from leaving an F-Bomb somewhere you shouldn't?

Git Shit - Shit Developers Say

I'd like to introduce you to Git Shit! It's a Twitter Bot that pulls Angry Commit Message from GittHub. It's a pretty simple Node Script using Octokit and the Twitter API. It strips out Emails, Repos, & URLs in order to keep everything anonymous. It only runs a few times a day, so it won't clog up your feed.

Give It A Follow!

^^or ^^don't. ^^I ^^don't ^^give ^^a ^^shit.

Posted on by:

jackharner profile

Jack Harner πŸš€


I'm Jack! I'm a Front-End Engineer. I have experience with WordPress, React, Linux Admin, & More! Let's Chat!


Editor guide

I don't. Ever.

This is a life-rule that I apply to everything: If something could come back to embarrass me in the future (even 2 seconds from now), then I probably shouldn't say/do it. What you say on the Internet, in particular, is forever. Somewhere, someone has indexed your git commit message, tweet, Facebook post, etc.

I will readily admit this is difficult for me, though. I'm a high-functioning autistic. Filtering myself doesn't come naturally.

Anyway, I wish more people followed that rule. The Internet would be a nicer place for it.


I try not to. I'm usually professional, and I normally write (what I think are) good, informative commit messages.

$ git log | grep 'REDACTED_NAUGHTY_WORD_REGEX' | wc -l
$ git log --author="jsrn" | grep 'REDACTED_NAUGHTY_WORD_REGEX' | wc -l

Not bad for 5 years or so on this code base. I'm responsible for a mere 24% of the sweariness!


No, because then if I read it back it's like a drunk person swearing at me about something I don't understand.

I do sometimes commit like:

To punish myself. πŸ˜…


drunk person swearing at me about something I don't understand.

Most of my commits are this way, cuss words or not. πŸ˜‚


Those are my commits.

Yours look the same but with swears Jack. look the same but swears Jack. Yours look the same but swears Jack.
Yours look the same but swears Jack.
Yours look the same but swears Jack.
look Yours the same but Jack. swears
Yours look the same but swears Jack.
the same but the same but the same but


Cheers πŸ₯‚ 🍻

It's been so long since I've watched The Shining. I think it's time for a rewatch.


I never swear in commits even though I'm a potty mouth and swear all the time.

The furthest I'll go is super sarcastic comments if I have been frustrated with what I am working on.

I would like to fit some emojis into my commits but have been waiting for someone else from work to make the first jump πŸ˜„


but have been waiting for someone else from work to make the first jump

Be the change you want to see in this world!

git commit -m "πŸ› = squashed. 🚧🚧🚧 Still Working On XYZ 🚧🚧🚧"

"Stepladder equals squashed. Traintracks still working on XYZ traintracks."

That's a nope from me.


Considering your git commits are a digital journal of what work was performed in an atomic unit, I don't see why you would ever cuss in a commit message? What use would that provide your future self?


I think it's safe to say my commit messages in general are not very helpful. Luckily so far it's only me working on things and most of my git usage has been for moving work from one computer to another/glorified backup.

I definitely need to get better with it though. How often do you actually commit? Every time whatever you're working on is "working"?


It's difficult to say how often you should commit - that is often down to the nature of the work you are carrying out. I guess an overarching rule would be "commit when you reach a natural stopping point in your work" but that is subjective and a lot of it depends on the environment you're working in (how big is your team, do you feature branch or commit straight to master, etc...) Moreover, that natural stopping point can be wildly different from ticket to ticket.

My general rule for naming a commit is "Describe what you achieved in the commit". So if I come across a piece of code 5-6 months later and I'm like "WTF is this for?!", I can git blame, check out the commit message and hopefully that will explain why it is there.

For example, my latest commit on one of the projects I'm working on at the moment is: "Add background job to build monthly categories after a MonthlyBudget is created"


I find their use similar to docs that explain what a function, method, property, etc. does. It's not immediately useful, as you know what it does, but in the long run or if you work in a team, it provides the ability for the programmer to never need to see the code. You explained what something does with a standard human language and by doing so, saved time.


I am curious about this too. My commit messages revolve around the work that was done, and none my completed work involved something related to a curse word.


No, in the same way I don't tend to swear in posts here. It's not the right environment.

I swear quite a lot in real life, but when I've looked back over commit messages I made in the past, the times I've sworn just look infantile and embarrassing.


I try not to use actual cusses, but I use some cuss-adjacent words, like faaaaaack, on occasion.


You don't really get the point of commit messages, if you write them like that 😊

I think you should read this guide.


I definitely don't use commit messages to their full/proper potential.

Thank you for that guide. It's definitely something I need to get better with.


Recently, I found some β€˜bad’ words in a decade-old comment in a rarely edited file.


Did anybody else find it?

I accidentally left a console.log("Fuck Off") in a project for way longer than it should've been.


I pretty much showed it to everyone sitting near me because I thought it was hilarious 😊


Nicely done on the bot sir. πŸ˜‚


I even did it in huge ASCII-art letters, once. It was at work, at 4 AM on a weekend, if I remember correctly.


I think if you're pushing Work commits at 4AM on weekend, I would expect nothing less than massive ASCII-art cuss words.