Boys, don't dev alone or you'll end up with a git log like mine

4 months ago by Gonzako to c/programmer_humor

con_fig 73 points 4 months ago

πŸ‘ Learn πŸ‘ to πŸ‘ squash πŸ‘ those πŸ‘ commits πŸ‘

path: 0 24396102, hotness: undefined, score: 73, children: 1
fibojoly 19 points 4 months ago

Seriously. My colleague does the same shit and it made me so mad until I realised he was on his branch. Then I was like, whatever, as long as you do a proper MR.

path: 0 24396102 24400904, hotness: undefined, score: 19, children: 0
towerful 40 points 4 months ago

Yeh I use git (git commit --amend)

path: 0 24395880, hotness: undefined, score: 40, children: 13
Archr 5 points 4 months ago

git commit --amend --no-edit and git push --force-with-lease

No-edit skips opening an editor for the commit message and just reuses the same message.

Force-with-lease will force push but only if your local is not missing commits that remote has. Ie other people haven't pushed anything since you last pulled.

path: 0 24395880 24419020, hotness: undefined, score: 5, children: 0
wpb 2 points 4 months ago

If you're comfortable with whatever text editor git uses, give git rebase -i a try.

path: 0 24395880 24413778, hotness: undefined, score: 2, children: 0
Gonzako -1 points 4 months ago

Would this also trigger (git rev-parse) to change? I have CI/CD listening to changes on the master branch

path: 0 24395880 24396159, hotness: undefined, score: -1, children: 10
waldfee 7 points 4 months ago

When you have to amend a commit that you have already pushed you have to force push the amendment. That should then trigger the Pipeline

path: 0 24395880 24396159 24397041, hotness: undefined, score: 7, children: 2
tyler 6 points 4 months ago

--force-with-lease though, not just force.. It's a good habit to have because then when you are working with other people you won't fuck everything up.

path: 0 24395880 24396159 24397041 24399900, hotness: undefined, score: 6, children: 1
doppydrop 2 points 4 months ago

This is good advice, I got too used to being a solo dev that once I worked with a larger team... mistakes were made.

path: 0 24395880 24396159 24397041 24399900 24400089, hotness: undefined, score: 2, children: 0
Witchfire 3 points 4 months ago

Work off the master branch first, don't push to prod until you're ready to

path: 0 24395880 24396159 24401117, hotness: undefined, score: 3, children: 4
Gonzako 1 point 4 months ago

Well, prod is luckily the people I have next room. I made the setup so changes get uploaded quickly. I could do branches and all that stuff?

Yeah, but i'd rather not work to work and just get it out the door. What my setup is for is that changes get pulled off the master branch and deployed without an apparent interruption of service.

I see collaboration tools just the same as abstractions, you don't use them just to use them. They need to solve a problem.

path: 0 24395880 24396159 24401117 24404233, hotness: undefined, score: 1, children: 3
Witchfire 3 points 4 months ago

...do you not use branches?

path: 0 24395880 24396159 24401117 24404233 24404578, hotness: undefined, score: 3, children: 2
VibeSurgeon 1 point 4 months ago

Well, there's your problem.

Get yourself a nice button/endpoint you can hit to trigger CI/CD that way instead

path: 0 24395880 24396159 24404676, hotness: undefined, score: 1, children: 1
Gonzako 1 point 4 months ago

You're saying it's a problem but i'm not really reading why. While the idea of a massive button to push changes is fun having the master branch be production is a concrete idea i've grown fond of, iteration is fast, both at testing and deployment.

path: 0 24395880 24396159 24404676 24404865, hotness: undefined, score: 1, children: 0
AstroLightz 40 points 4 months ago

You don't just write your entire project, then make your first commit?

/j

path: 0 24400777, hotness: undefined, score: 40, children: 2
irelephant 17 points 4 months ago
path: 0 24400777 24405842, hotness: undefined, score: 17, children: 1
wpb 13 points 4 months ago

That's all I ever commit

path: 0 24400777 24405842 24406115, hotness: undefined, score: 13, children: 0
exu 27 points 4 months ago

rebase & fixup or reset are your friends

path: 0 24395689, hotness: undefined, score: 27, children: 32
jerkface 17 points 4 months ago

I love editing history. Fix the bug in the change that introduced it!

path: 0 24395689 24395947, hotness: undefined, score: 17, children: 14
we_need_more_dwellings 16 points 4 months ago

Then force-push, and fuck up someone's day!

path: 0 24395689 24395947 24397082, hotness: undefined, score: 16, children: 13
thoughtfuldragon 15 points 4 months ago

git branches are free
work in your tree
til the changes are ready
300 git push --force-with-lease a day and nobody mad

path: 0 24395689 24395947 24397082 24397723, hotness: undefined, score: 15, children: 11
defaultusername 3 points 4 months ago

I prefer to force push directly to the production branch.

path: 0 24395689 24395947 24397082 24397723 24398848, hotness: undefined, score: 3, children: 1
Evotech 2 points 4 months ago

Continuous integration is better. Fight me

path: 0 24395689 24395947 24397082 24397723 24400910, hotness: undefined, score: 2, children: 8
jerkface 1 point 4 months ago

This remains a hypothetical situation in my tree. :-/

path: 0 24395689 24395947 24397082 24397570, hotness: undefined, score: 1, children: 0
Gonzako -16 points 4 months ago

I personally don't really care for the meaningful messages or a pretty log. I only see these myself.

path: 0 24395689 24395773, hotness: undefined, score: -16, children: 16
jerkface 21 points 4 months ago

And clearly as a Windows developer, you hate yourself and don't believe you deserve nice things, so it all checks out.

path: 0 24395689 24395773 24396349, hotness: undefined, score: 21, children: 9
Gonzako -7 points 4 months ago

My bad for having a salary

path: 0 24395689 24395773 24396349 24396569, hotness: undefined, score: -7, children: 8
jerkface 12 points 4 months ago

This is just your self-hatred turned outwards. I forgive you.

path: 0 24395689 24395773 24396349 24396569 24396646, hotness: undefined, score: 12, children: 0
tyler 5 points 4 months ago

I'm very confused haha. didn't you say this code was just personal code? or that it was just for yourself? If you're at a job why are you committing like this?

in any case, I'm sorry for the absolute crazy amounts of hate you're getting for using windows. I do highly recommend trying out linux though. unless you're doing cad or 3d modeling, you will likely have zero issue using it.

path: 0 24395689 24395773 24396349 24396569 24399969, hotness: undefined, score: 5, children: 3
partofthevoice 4 points 4 months ago

With my salary, I am boss of my OS. I tell my boss, β€œyou really want me working on that pile of shit? Okay, it’s your time.”

path: 0 24395689 24395773 24396349 24396569 24397184, hotness: undefined, score: 4, children: 2
Serinus 8 points 4 months ago

Then why are you using source control at all? You can manually copy the directory and name it "β€” Copy".

path: 0 24395689 24395773 24398596, hotness: undefined, score: 8, children: 2
Gonzako 1 point 4 months ago

I set up CI/CD that silently boots up the changes pushed on main

path: 0 24395689 24395773 24398596 24398820, hotness: undefined, score: 1, children: 1
tyler 5 points 4 months ago

then just always force push. You're not even using the source control, you might as well just use a shell script to deploy rather than listening on CI/CD

path: 0 24395689 24395773 24398596 24398820 24399923, hotness: undefined, score: 5, children: 0
floquant 7 points 4 months ago

Future you might not think the same

path: 0 24395689 24395773 24399296, hotness: undefined, score: 7, children: 1
Gonzako -1 points 4 months ago

Should I find a problem solved by me adding commit messages i'll gladly do it. I use stuff as I find an usecase for it. Atm, i'm completely alone so i've 0 need to write up what my changes do. It personally gets in the way of quickly iterating and then testing.

path: 0 24395689 24395773 24399296 24404362, hotness: undefined, score: -1, children: 0
fibojoly 4 points 4 months ago

Ah sweet summer child...

path: 0 24395689 24395773 24401013, hotness: undefined, score: 4, children: 0
olenkoVD 24 points 4 months ago

Skill issue

path: 0 24397708, hotness: undefined, score: 24, children: 5
bss03 7 points 4 months ago path: 0 24397708 24399960, hotness: undefined, score: 7, children: 4
Gonzako -6 points 4 months ago

Has your real dev commits gotten you a real dev job? You seem to be looking for a job offer on your mastodon since february and i'm worried for you.

path: 0 24397708 24399960 24400528, hotness: undefined, score: -6, children: 3
bss03 7 points 4 months ago

I'm not sure if any of those commits did, but I worked 2 years doing Haskell backend and jQuery+Bootstrap frontend for Masterword. Before that I did some work for Wire: https://github.com/... Before that, I worked at TGCS for nearly a decade.

But, right now I am still looking for work. I've actually been looking since April 2025 when my time at Masterword ended, but I did update my "hire me" posts back in February because my living situation changed, opening up more opportunities. Originally I needed something remote so I could continue to take care of my father (RIP), now relocation is certainly an option.

If anyone reading this has a position available, or is just curios, my current resume public: https://docs.google.com/...

path: 0 24397708 24399960 24400528 24408970, hotness: undefined, score: 7, children: 2
vanillama 5 points 4 months ago

Best of luck finding a job, sorry about your father

path: 0 24397708 24399960 24400528 24408970 24413904, hotness: undefined, score: 5, children: 1
somegeek 21 points 4 months ago

A dev on windows? Of course that's your git log!

path: 0 24397985, hotness: undefined, score: 21, children: 0
copacetic 17 points 4 months ago

Looks like a normal branch where someone debugs some GitHub workflow.

path: 0 24396290, hotness: undefined, score: 17, children: 0
one_old_coder 14 points 4 months ago

Is it humor because we make fun of you?

path: 0 24396691, hotness: undefined, score: 14, children: 1
Gonzako 6 points 4 months ago

More like laughs out of relatability. Tho I am getting dogpiled for the industry standard practice of using what the company provides.

path: 0 24396691 24396743, hotness: undefined, score: 6, children: 0
Witchfire 13 points 4 months ago

You need to learn refactoring/squashing

path: 0 24401102, hotness: undefined, score: 13, children: 0
AzuraTheSpellkissed 13 points 4 months ago

[Test] around and find out

path: 0 24405511, hotness: undefined, score: 13, children: 0
tdgoodman 12 points 4 months ago

I cannot give you a 100% for consistency. You have three inconsistent check in messages: 'tet', 'FueraEstanciaRowRename', and 'Revert "test"'. You must be uniformly informative with your messages.

path: 0 24409569, hotness: undefined, score: 12, children: 0
leo85811nardo 6 points 4 months ago

Me when learning GH Actions/CI/CD

path: 0 24398471, hotness: undefined, score: 6, children: 0
folekaule 6 points 4 months ago

I see I'm not the only one fighting with CI/CD pipelines.

path: 0 24396588, hotness: undefined, score: 6, children: 0
asudox 5 points 4 months ago

my private repo is filled with "stuff", "more stuff", "new stuff", "changes" commits.

path: 0 24396061, hotness: undefined, score: 5, children: 0
the_beber 4 points 4 months ago

Whenever I work on something, I donβ€˜t intend on publishing, I use What the commit.

path: 0 24398878, hotness: undefined, score: 4, children: 1
Gonzako 2 points 4 months ago

Oh, nice. i'll script it on my neovim

path: 0 24398878 24399289, hotness: undefined, score: 2, children: 0
python 4 points 4 months ago

well yeah, in an enterprise project we would say "chore(test)". Semantic release ftw!

path: 0 24411676, hotness: undefined, score: 4, children: 0
slazer2au 3 points 4 months ago

Small incremental changes are good.

path: 0 24395644, hotness: undefined, score: 3, children: 4
Evotech 2 points 4 months ago

Very few people actually practice continuous integration

path: 0 24395644 24400889, hotness: undefined, score: 2, children: 0
Gonzako 2 points 4 months ago

Test

path: 0 24395644 24395672, hotness: undefined, score: 2, children: 2
slazer2au 7 points 4 months ago

Fix

Fix?

Fixed?

This one right?

Why?

.....

path: 0 24395644 24395672 24395700, hotness: undefined, score: 7, children: 1
Gonzako 4 points 4 months ago

That was while I still had a soul

path: 0 24395644 24395672 24395700 24395744, hotness: undefined, score: 4, children: 0
renzhexiangjiao 1 point 4 months ago

git rebase -i [hash of your first commit]

path: 0 24411947, hotness: undefined, score: 1, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
33675
2568
7703

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
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...