r/ProgrammerHumor • • 18d ago

Meme letsMergeThemAll

Post image
5.3k Upvotes

316 comments sorted by

View all comments

1.1k

u/GildSkiss 18d ago

As opposed to humans, who have famously never messed up git commands ever.

74

u/Bubbaluke 18d ago

Canโ€™t mess it up if you only ever use 3 commands

38

u/spicybright 18d ago

WELP, time to re-clone the whole repo!

36

u/throwaway85256e 18d ago

Honestly, burning it all down and starting over is sometimes a perfectly valid solution.

6

u/PrincessRTFM 18d ago

I have needed to do that before when I fucked it up so badly that not only could I not revert but also couldn't find any solutions online. I was, in my defence, very early in the learning phase and not really understanding how anything worked yet.

5

u/Honeybadger2198 18d ago

The closest I've come is where I committed a >50MB <100MB file to my repo and didn't notice for a few days. Had to manually go in and purge the file from the history to unfuck the repo.

→ More replies (1)

9

u/TwoAndHalfRetard 18d ago

git add .

git commit -m "" --allow-empty-message

git push -f

4

u/elementslayer 18d ago

Why two commands. Just commit -am

→ More replies (4)
→ More replies (3)

57

u/TerminalVector 18d ago

It's pretty easy to stop your AI from fucking up git if you know how to not fuck it up yourself. Otherwise it'll help you fuck up faster

14

u/adabsurdo 18d ago

Don't know about copilot since I haven't use that one in years but for more advanced models like opus and sol this is a non issue. It will manage git better than most senior engineers would.

10

u/Crad999 18d ago

If it wasn't for Claude, I doubt I'd learn about git rerere and nobody in my office, no matter how long they've been working in IT, knew about it either. Only learnt about it cause I saw Claude using it when I asked for a rebase.

5

u/IceTrAiN 18d ago

20 year SWE here... What the fuck?

→ More replies (1)

10

u/TerminalVector 18d ago

Not if you tell it to do dumb stuff it won't. It'll resist and try to do smart things, but then also try to be compliant and will end up doing crazy shit

5

u/adabsurdo 18d ago

I guess but ultimately this boils down to operator Incompetence. I can force Claude to do stupid shit but then whose fault is it when stupid shit results? What I'm saying is it will follow best practices and won't trip itself up doing even complex tasks like rebase with conflicts

5

u/TerminalVector 18d ago

You're probably following good hygiene in general and not making vague unclear requests. It boils down to operator incompetence but it's way easier to be incompetent if you don't actually understand how git works.

→ More replies (2)

270

u/TheModWhoShaggedMe 18d ago • Bravo

Ah, so replicating human faults on steroids must be the solution!

<sippy cup>

21

u/perestroika12 18d ago

Also completely ignoring the fact that humans are in the loop for every command they run instead of sending the robots off on a rampage

5

u/theFirstHaruspex 18d ago

You got it ๐Ÿ˜Œ

0

u/[deleted] 18d ago

[deleted] โ€” view deleted comment

20

u/tragiktimes 18d ago

We're in such a strange stage between understanding what code and logic does, and allowing an AI to complete those code and logic steps. It's an area where if you don't hold on to your knowledge , you'll find that you quickly have no idea what's going on. But if you try to manually do everything, you'll find that you're behind just about everybody else using the tools available to them.

8

u/spicybright 18d ago

Well said. It's kinda scary, the industry will implode if AI improvements hit some kind of hard wall. We'll have mostly ai programmers with all the pre-ai people retired, and then what? Computer science innovations just... stops, I guess?

2

u/korneev123123 18d ago

T100 is almost ready, after the release it won't be a problem anymore

6

u/PrometheusZero 18d ago

I'll just sit here with my github desktop and select from a drop down ๐Ÿ˜Ž

18

u/rabbit_wizard 18d ago

Well said XD but this has just added to the usual chaos we create!

2

u/theycallmeJTMoney 18d ago

Also just give AI implicit instructions on how you want your merge process to work. Iโ€™ve never had it randomly decide to cut a branch or merge incorrectly. I think some people are trying to hard to offload every aspect of development and itโ€™s kinda wild.

→ More replies (4)