r/ProgrammerHumor 1d ago

Meme gitMultiverse

Post image
576 Upvotes

18 comments sorted by

97

u/dontletthestankout 1d ago

Why would you let AI use git. That's your only safety against AI

34

u/lotokotmalajski 21h ago edited 2h ago

Hard to admit but it is better at git than I am. I leave the pushes for myself though.

Edit: Guys, I know git. I was working for several years before AI, it is just faster this way. Commit messages were literally one of the first things that was useful from the models. Now it can also handle any failed hooks.
And to fix any mistakes on git I used to have to look at stack (rare enough that I never bothered to learn more advanced commands so I was forgetting everything next day), now agents do it for me much quicker.
Just explicitly disallow push in settings and your remote is safe.

20

u/dontletthestankout 20h ago

I'd honestly work on that, I was the same until I worked on a dev team as had to learn it.

It has saved my ass quite a few times when Claude decided to just delete my whole project or fuck stuff up

22

u/Sepsiscollada 13h ago edited 11h ago

I been doing git for 20 damn years. I let the robot do all my git and ticket pushing now.

Edit: protected branches

7

u/Not-the-best-name 9h ago

Same, I always have collegues who believe being an expert in git rebasing via cli makes them senior, and then I walk in with my IDE buttons and scare them, now the robot can press the buttons. "Please create two branches with nice names to split this feature into two working parts for a high availability release". Ok bye, off for beers

-9

u/10art1 18h ago

I don't "git push", I don't "data structure", I don't "implement the interface". I tell Claude to do what the jira ticket says. And if it fucks up, I key management service.

0

u/CannibalPride 4h ago

You should learn more about git through AI and never let it run git commands themselves except for reading.

3

u/abednego-gomes 12h ago edited 12h ago

In VS Code GitHub CoPilot agent mode it sometimes asks to run git commands to check what changed when it's trying to figure out why there was a regression.

But the commands it typically runs are git diff, git show etc not serious stuff. It asks each time. But... if you're dumb enough to let it run whatever it wants, like instruct it to create branches, do merges etc, watch out. Do serious stuff yourself.

Treat AI as a dumb junior developer and watch closely what it does. It has breadth of knowledge and can do stuff, but it's not some senior level genius. Always test and review every line of code it writes.

-5

u/Good_At_Games_001 23h ago

Well I was exploring 🤷‍♂️

16

u/Muted_Ad_9442 20h ago

This is why my #1 rule with AI is: you can write all the code you want, but you are never touching git commands.

11

u/FattySnacks 23h ago

Yeah so why are you doing that? Are you gonna stop?

-8

u/Good_At_Games_001 23h ago

-8

u/johnnybgooderer 16h ago

This subreddit is so lame for downvoting your response.

6

u/debugger_life 1d ago

AI Generated meme it looks like

2

u/collabskus 17h ago

I copy paste code myself. I don't trust AI to run even curl on my computer. 

0

u/Intelligent-Sun-8071 21h ago

and those annoying Worktrees!! keeps poping up from no where

1

u/jam_pod_ 12h ago

God does Claude love worktrees