this post was submitted on 09 Apr 2025
556 points (98.8% liked)

Programmer Humor

29629 readers
1307 users here now

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

founded 2 years ago
MODERATORS
 
top 39 comments
sorted by: hot top controversial new old
[–] DScratch@sh.itjust.works 53 points 10 months ago (4 children)

Be a man.

‘git commit -am “changes”’

[–] drew_belloc@programming.dev 38 points 10 months ago (3 children)

At this point just create a script or alias called "fuckthis" that does that and then push direct to main

[–] DScratch@sh.itjust.works 35 points 10 months ago (1 children)

PR reviews take the most time, eliminating those saved us loads of time.

QA were also bogging us down, axed them too. Now we’re flying.

The Social Security Infrastructure rebuild should be done in a matter of weeks! At least that’s what Copilot says.

[–] Vittelius@feddit.org 1 points 10 months ago

That's how you get a Boing

[–] jol@discuss.tchncs.de 26 points 10 months ago (2 children)

I have auto save on. A cron job running every minute with just git add . && git commit - m "wip"

[–] magic_lobster_party@fedia.io 12 points 10 months ago

&& git push --force

[–] DannyBoy@sh.itjust.works 19 points 10 months ago (3 children)

Have the name of the alias be "gti" or "gut"

[–] SexualPolytope@lemmy.sdf.org 7 points 10 months ago* (last edited 10 months ago)
alias {gti,gut}='git commit -am "changes" && git push -f'
[–] synae@lemmy.sdf.org 5 points 10 months ago* (last edited 10 months ago)

I have about a dozen aliases of various mistypings of "git". Somehow I still hit unaliased typo once in a while

[–] KindaABigDyl@programming.dev 5 points 10 months ago (1 children)

And any project worth their salt will reject it for two reasons:

  1. Unclear message/changes (potentially too many changes at once)
  2. Not signed
[–] wise_pancake@lemmy.ca 5 points 10 months ago

I’ve got signing auto enabled though

[–] JiminaMann@lemmy.world 2 points 10 months ago

Doesn't work for me idk why, it'll ignore the message, and i have to commit again before i can push

[–] Limonene@lemmy.world 24 points 10 months ago (1 children)

I like git add because then you can do git diff --staged

[–] davetapley@lemmy.world 7 points 10 months ago (1 children)

Yes yes, combined with git add -P makes small, meaningful commits so much easier.

[–] fossphi@lemm.ee 6 points 10 months ago (1 children)
[–] davetapley@lemmy.world 2 points 10 months ago (1 children)

Alas I sold my soul to VSCode a long time ago.

Also, ew, emacs 😝

[–] fossphi@lemm.ee 2 points 10 months ago

Oh come on, try it out! I know some people who use emacs only for magit. It really is that good.

A few of them slowly became full on emacs users...

[–] zero_spelled_with_an_ecks@programming.dev 13 points 10 months ago (1 children)

... What's git merge look like?

[–] zqwzzle@lemmy.ca 18 points 10 months ago (1 children)
[–] childOfMagenta@lemm.ee 2 points 10 months ago* (last edited 10 months ago)

... incident

[–] synae@lemmy.sdf.org 10 points 10 months ago

grow up, use "git add -p" and craft perfect artisanal commits

[–] heavydust@sh.itjust.works 10 points 10 months ago (1 children)

Real 10x vibe developers use https://jj-vcs.github.io/jj/latest/, no need to add or commit!

[–] drew_belloc@programming.dev 7 points 10 months ago (1 children)

So is easier to push direct to prod? Hell yeah!

[–] heavydust@sh.itjust.works 4 points 10 months ago (1 children)

With jj you're always the prod whatever you do! Feel free to break that fucking CI.

[–] drew_belloc@programming.dev 1 points 10 months ago (1 children)

Gonna try it out non my next college project

[–] heavydust@sh.itjust.works 3 points 10 months ago* (last edited 10 months ago) (1 children)

You may or may not be joking, but jujutsu is the first true git alternative that I'm actively trying on small projects at work. The command-line is great, and I can still interact with other devs without breaking stuff.

Buuuuuuuut if you're a CS student, don't bother, it's weird and you should focus on git which is used everywhere. You can get free GUI clients like Sublime Merge or SmartGit to ease the pain. I've been hating git since the beginning, but it's the least worst SCM right now. Learn the command-line, but I have never done that since it's infuriating, and that's why I've been using GUIs since, holy shit, Wikipedia says 2005.

[–] drew_belloc@programming.dev 2 points 10 months ago (1 children)

Is just half a joke, i do like to try it out a lot of different things, be whatever it may be, so i'm totally finding a project to use this, and also i don't really like to use a GUI for git simce most of my workflow happens in a terminal, and even tho i do like how git works i am open to try something new and see if it's better for me or not

[–] heavydust@sh.itjust.works 2 points 10 months ago (1 children)

Try Mercurial too. Both projects started at the same time but git won. Mercurial is equivalent but its interesting.

[–] drew_belloc@programming.dev 1 points 10 months ago

Sure, thanks for the recomendation

[–] Comtief@lemm.ee 7 points 10 months ago

i'm sure there are much better tools available, but i'm just used to git gui where rescan, commit and push all are in order.

[–] NigelFrobisher@aussie.zone 5 points 10 months ago

Every bloody time, though this case the people not on the Ryanair flight may be the lucky ones. If only git was the most unnecessarily arcane thing devs have to/choose to work with.

[–] callmepk@lemmy.world 4 points 10 months ago
[–] tatterdemalion@programming.dev 4 points 10 months ago

Use Jujutsu jj and you won't have this problem

[–] lobut@lemmy.ca 4 points 10 months ago

lazygit is pretty cool too.

[–] thirteene@lemmy.world 3 points 10 months ago

I set this up for seamless commits:

function gao() {
     git add .
     git commit -a -m "$*"
     git push origin `git rev-parse --abbrev-ref HEAD`
 }

Usage: gao fixing a typo

[–] anti_antidote@lemmy.zip 2 points 10 months ago

Jujutsu time 😁