I draw the line at pushing to remote. The AI can do whatever locally, but when you push to remote it all becomes "real". I don't want Claude getting used to mucking around on the remote server at all, so I handle all pushes myself.
Yeah, the pushing and commit message is strictly MINE. Ai sucks at writing succint commit messages and what better metric of understanding than being able to grasp the core of your changes with your own words.
I mean, if all you added was "a bunch of unit tests" then that one isn't that bad. I know that if I'm looking for what broke something later I don't need to look at the tests (I hope, sometimes you never know).
I actually disagree, you just need to constrain it to conventionnal commit messages. Just like humans. I always setup pre-commit hooks to reject anything else, and I've also been adding it in the CI to fail builds for people who weren't setting up the hooks.
I haven't had to mess with git-cliff's output in years, it works great
I'm actually okay with how LLMs write commit messages. I wrote a skill detailing our conventions and requiring the agent to show me the commit message for approval.
Although now that I think about it, we do story based branches, and the LLM has the ability to interface with Jira, so perhaps it's getting additional context that helps.
Also note I keep a human in the loop, so perhaps I am avoiding that context drift that LLMs can have.
Unfortunately we get tracked on our AI usage via the commit messages, so I have little choice but to let Claude handle that. I hate what it does to the commit logs, but waddayagonnado?
I do not even allow Claude to stage or commit changes.
Often after a prompt or two, I review Claude's changes, then stage. At major points, I commit. This helps me keep track of what Claude has done. I can also easily discard solutions I do not like.
I keep seeing online horror stories of people who do not even review or understand what Claude has modified.
I usually stage and tell Claude to "commit staged changes" with a particular note. That way I get the Claude attribution (for my "metrics" /rolleyes) without having to copy it by hand
I do the same, i split everything down into small steps, review it, if its something easy to fix I do it manually otherwise ask it to redo it. Then stage and let it suggest the next step it should do and sometimes yes sometimes I prefer anoyher step first. Then rinse and repeat until its done and I don't get a pr with 200 file change where its impossible to follow What's happening
I care less about committing, you can always reverse that. I do like to see the diff beforehand so I got it to always ask before committing via claude.md. Works 99.9% percent of the time
git has it's own alias system. For example, I set alias co = checkout, and the best part is that bash completion understands this automatically, and suggests valid targets for checkout. Bash-level aliases won't do that.
Push means to move things. Thats why we use force tag! To add more power to push. Its more than turning on and off we can change things like the colour.
No no no. you need to hook up claude to your customer support email so every time someone emails in a complaint claude can fix it and immediately deploy to production.
After being sent my 5th version of Claude trying to send me source code as a series of git patch files uploaded second hand to Google drive through my non-technically inclined CEO, I've been begging to let it push to some kind of remote.
Just use VSCode and press two buttons to commit and push... You can even look at diffs, you know, to at least have an idea on if your code is garbage or not.
Agent written commit messages kinda suck though. It makes a wall of text for the smallest changes talking about things that didn't work or weren't added.
Unless your quality gates were also rewritten by a swarm of totally reliable agents just recently after your management had a hissy fit over a need to increase development velocity 🤷
Depends on the context, but GitOps is a thing where you can totally push to a branch and see it being yeeted into prod via a CI/CD pipeline of varying degrees of reliability and quality assurance.
Before AI, those were glorious times. Every developer—even the greenest junior—knew Git inside out. Interactive rebasing, accidental pushes to master, force-pulling after a squashed merge—everyone knew the drill.
Before AI, those were glorious times. Every developer—even the greenest junior—knew Git inside out.
Well, that's just a lie. Nobody knew how git works, people just knew that if they repeated the chant it would work... and if you messed up people would call upon Great Spell of Blame. Such was the time, and many relied on great GUIs to do magical chants for them
You are making stuff up. Before AI, developers who perfectly understood the technology they were using were slowly but surely developing bug-free software. Glorious old days, full of beauty and understanding
And brave managers protecting programmers from feature creep, clients providing high-quality, human-written documentation. Endless fields of rye bathe in the warm amber glow of a setting sun while a gentle breeze carries the sweet scent of wildflowers across the valley.
Not really lol. Everyone had like 5 general commands memorized, and a few more which were based around specific rules/procedures your particular team had agreed on. For anything else, you had to google.
Heh, I remember my first job having come fresh out of university... nobody used git. The "version system" was just "draft" "test" "test2" "test_new" and so forth folders.
I got quite a few questions about "why should we use git", and first time I undid bad commit people understood why. Being able to just.. undo something that broke everything was brand new. Previously you had to go to whatever second newest file save was.
Nah, bro, most of us survived with a post-it note listing the 5 most frequent Git command combos we needed. For everything else, there was Stack Overflow.
Lol dunno where you are from but this is absolutely not true, as soon as someone made a visual interface for git people used that shit and nothing else.
I prefer to use cli and to know what I'm doing but I've worked with people that could not be bothered to know what the versioning tool was doing to save them.
I actually never have learned git beyond basic. I have howtogeek cheat sheet for doing things. I doing hobby things as single dev, it is little bit killing fly with cannon setting everything is pain. SVN on home server is more that good enough and simple as I can do everything after some beer
the amount of people replying to your comment who I'd have to say "Whooosh!" to, is directly proportional to the number of IT professionals who are unable to adapt to the changes in the industry.... Jesus Fucking Christ, people...
I stopped handling thel manually after i noticed that agents literally make way less mistakes in merges than I do manually. With the latest models I've had 100% success rate in resolving conflicts with agents only. Now I no longer trust myself in doing the manual merges other than testing the end product
A non-trivial merge conflict resolution is very time consuming. I feel like a lot of devs don't put the time necessary to pull up the full diff of both changes to make sure you've got it all correct.
I've watched some of my team resolve conflicts before and I do have to say, I would rather have AI resolve conflicts rather than the approach of looking at the code and making a good guess at which goes in.
Only if I am unsure of the changes. But yeah, it's a lot faster to ask it to give quick analysis and recommended strategies (and reasoning for merge strategies), than go everything by hand.
I still don't let it just merge and push, buck stops at me so I need to verify and approve anything done.
But running git commands is the one thing I don't allow it to do. Not because I think it would be lazy (I am lazy), but because otherwise I'd lose track of the state of my commits and won't know anymore what I reviewed and put my name to.
Allowing it to push commits on my name sounds like a serious security issue.
Because im already in the chat with the agent and it has a skill to create a branch that matches our naming standards, nice commit message, create a mr direct from the cli, assign it to me and add labels.
Sure, i could do it manually as i have done for 15 years but the agent is just faster and makes fewer mistakes and typos
If you use AI to co-author you need to at least have AI do your commits so it's clearly shown in your vcs that it was co-authored. If you're claiming AI work as your own with manual commits you're an idiot.
Pro tip: you can have the agent draft a commit message, and then when you decide that it's up to snuff you can copy the message and pipe it to git with whatever command your OS uses i.e. wl-copy | git commit -F -
You get control of the git pipeline, and still get the AI to write the message for you
I am having the same question. Looking at other comments, some people seem to pride themselves as cli user. But I have never been one.
I even against using cli because I have seen too many new hires committing BS into their PR and I have to call them out. They just blindly add everything to the commit because cli is too cumbersome for them.
And it is so annoying because VS Code is already the main IDE we use for development and VS Code already has a very solid git GUI. You can diff, and stage individual lines you want to commit, not just a blind commit all. It is so easy compared to cli. And switch branch is so easy, you don't need to remember the full branch name.
Anyway, I will stop here. More people are going to get upset I challenged their way to thinking.
Once I started to have my agent window the main entry point of my daily work, then it's easier for my lazy ass to just ask AI to do everything, instead of changing windows, displays, going to terminal, etc.
E.g. "Can you pull the newest main and merge it to the current branch?", "can you commit, push and create a PR?", etc
And before AI, I was the one that everyone asked git questions to in my team. Now, I'm just lazy..
I suppose it would be whether you actually understand what it’s doing vs wanting something that looks like work to just go away.
If you know you’re the bottleneck then getting help isn’t lazy, it’s efficient, but if that help makes everything worse than the bottleneck it might be lazy.
It's quite often I have 3-4 parallel worktrees with different claudes running and working in the same codebase. Their ability to navigate each other's merges is quite a sight to behold. A human in the loop would do nothing but slow everything down.
If you use AI for one line CLI commands, you truly are an embarrassment IMO. The bare minimum really ought to be you learning it from the AI. Its faster to just type it out then prompt for gods sake.
I love AI more than like 99.9% of Reddit, but I wouldn't even think about letting it touch my repos. This falls into the "a computer must not make a management decision" category.
I wrote a crap ton of bash scripts for git. Like my commit command pulls the branch name and appends it to the git commit message. Also mu push command pulls then pushes. That coupled with ZSh's aliases make it super easy to use the CLI. Im also like one of 5 people in my department that use CLI. I was shocked when a couple senior devs use a GUI for git...shudder
"Claude I trust you so much that I will let you commit, push and merge for me. Make no mistake"
For me, after finding out that AI agent can sabotage your LLM or deep learning research without telling you. Yeah, fat chance I let them touch my git file
Idk, I've always just used Fork to do my git actions. You can commit, message, merge, cherry pick, CRUD on branches, you also get a neat little git tree showing all of the changes made and the branches associated with them
You may laugh, but I have a co-worker who created a project with Claude and he doesn't know how the project is organized, what its dependencies are and where they come from, he doesn't know how to build it (he asks Claude to do it) or even run it (he has to ask Claude to run it). Needless to say, I'm not touching his project with a ten foot pole.
Weird indeed. I used to use the format shown in the post to push changes from my feature branch to remote's `staging` branch, but cherry-picking is quicker so now I do that
i went from git alias, and doing everything in git myself only in terminal to just let codex/claude handle this. Mundane task, can merge, split branches rebase etc without the hassle, it's awesome. But maybe I am already an AI crackhead and lost cause.
Claude always seems to mess something up when it does anything more advanced with git than making a commit. Even if it writes a lot of the code, I do the branching, pushing, PRs, rebases, etc.
I think a lot of us can’t hunt anymore, and few of us are still a good hunter. Same way you can still learn and practice writing code, but most might just prefer to pick up meat from supermarket. These “good ol’ days” of programming posts are at par with millennials versus Gen Z posts. They all have a point maybe, but it’s still irrelevant.
There are so many things that need to be updated and kept in alignment for the CI/CD pipeline to work correctly. I would be insane to attempt a manual push.
Welcome to the dark side. I was skeptical about AI too but I embraced it. It’s just a fast way of working. Obviously you have to review everything carefully and you have to keep the PRs bite size.
Every fucking time I ask it to do anything, it's like, let's check git! It loves git. I always deny the request and tell it to just fucking do what I asked.
What is their obsession with grabbing onto things outside their scope and how do I get it to stop?
470
u/dcheesi 12h ago •
I draw the line at pushing to remote. The AI can do whatever locally, but when you push to remote it all becomes "real". I don't want Claude getting used to mucking around on the remote server at all, so I handle all pushes myself.
132
u/spiritualManager5 15h ago
commit, push, merge now mf
127
u/Appropriate_Shock2 12h ago
I remember thinking it’s insane to use tokens for simple git commands or to start the project. Now everything is tell the AI to do it. Wild times.
82
u/Seven_Irons 14h ago
https://xkcd.com/1597/
68
u/DrMaxwellEdison 14h ago
Now just
git pushand stop worrying about it.80
u/XxDarkSasuke69xX 15h ago
Just use VSCode and press two buttons to commit and push... You can even look at diffs, you know, to at least have an idea on if your code is garbage or not.
20
u/NanD00da 14h ago
Make no mistakes
523
u/-__-Malik-__- 14h ago •
People who let their AI push in prod are scaring me
9
u/Work_Account89 14h ago
I still push manually but it’s def git push then copy and paste the git push -u…
145
u/sojuz151 15h ago
Before AI, those were glorious times. Every developer—even the greenest junior—knew Git inside out. Interactive rebasing, accidental pushes to master, force-pulling after a squashed merge—everyone knew the drill.
Before the dark times. Before Altman.
68
u/Adrenyx 15h ago
How lazy can you be to delegate git management to AI 😭
It’s literally just several important lines and commands to remember
13
u/mtmttuan 13h ago
Sometimes I let it commit just because I don't want to write commit msg
22
u/rettani 13h ago
12
u/antzcrashing 13h ago
I don’t get the joke, but that’s a cute cat
24
u/Thenderick 14h ago
You're using ai to push git??? I'm no purest by any mean and regularly use my IDE's git wrapper, but this is a bridge too far!
9
u/sitilge 15h ago
Who the fuck ever pushed like that?
9
u/MartinSik 15h ago
I am flowing against current. I just deleted all refs/agents bullshit.
29
u/Atrio-Ventricular 14h ago
Trusting ai do to git stuff is insane
7
u/BrownCarter 14h ago
They write better commit than me
6
u/ayassin02 13h ago
You let ai push?

6
u/Multidream 10h ago
If you use AI for one line CLI commands, you truly are an embarrassment IMO. The bare minimum really ought to be you learning it from the AI. Its faster to just type it out then prompt for gods sake.
3
u/KinkyTugboat 15h ago
Please don't delete another branch again
3
u/Financial_Western252 12h ago
Just use the GUI then
3
u/Tezza48 11h ago
gpsupI've become a fan of the omz aliases. Also you can do-uiirc.3
u/zuccster 10h ago
We are all priests now - offering prayers.
10
u/1XRobot 13h ago
I love AI more than like 99.9% of Reddit, but I wouldn't even think about letting it touch my repos. This falls into the "a computer must not make a management decision" category.
5
u/NotAskary 15h ago
I have hard rules to not commit, push or do anything on git besides pull and diffs.
People trust way to much on random chances.
4
u/grannysGarden 14h ago
People are having Claude do their git commands?! Lazy f*ckers!
2
u/Otherwise-Panda3662 10h ago
i still push via cli because i just press up and get the last command
2
u/vpn_unlimited_app 9h ago
My commit history used to be 'fix' and 'fix again'. Now it's one very polite paragraph explaining a fix that doesn't work yet.
2
u/Creative_Chemistry29 9h ago
I still use command line git because whenever you ask claude to push it takes like over a minute and 10k tokens. Some things are just faster yourself.
2
u/gravesent1337 6h ago
Am I the only one who still pushes commits by hand via terminal?
2
u/MosquitoesProtection 5h ago
Meanwhile my agent.md: "Do not commit anything unless explicitly requested! Never push, never checkout!”
2
u/Boom_Fish_Blocky 3h ago
when I use ai I never let it
3
u/redAI123 15h ago
"Claude I trust you so much that I will let you commit, push and merge for me. Make no mistake"
For me, after finding out that AI agent can sabotage your LLM or deep learning research without telling you. Yeah, fat chance I let them touch my git file
3
u/cheezballs 10h ago
If you think pushing in git makes you some sort of bad ass programmer then you're more of the bottom picture than you think.
2
u/ouralarmclock 13h ago
Jokes on you, before this I only used Sourcetree and the PHPStorm git clients because the git CLI was made by the devil.
1
u/Flakz933 12h ago
Idk, I've always just used Fork to do my git actions. You can commit, message, merge, cherry pick, CRUD on branches, you also get a neat little git tree showing all of the changes made and the branches associated with them
1
u/shuozhe 10h ago
git push and then copy paste what the error message suggest!
1
u/TheJackiMonster 9h ago
git push -fmake no mistakes...1
u/Sacus1 9h ago
Can someone explain the benefit of using an LLM to push instead of any other git tool
1
u/BloodyMalleus 9h ago
I just push ctrl+k :p
1
u/sanketower 8h ago
The irony of using AI for this meme...
Sidenote: Git is one of those things I absolutely do not let the AI touch, I do all stage, commit, rebase, and push operations myself.
1
u/nicer-dude 8h ago
We already had it a couple of times that it created a merge request without us knowing, assigning someone for review 😂😭
1
u/hector_does_go_rug 8h ago
"Generate a commit summary for me."
1
u/Perahoky 8h ago
I always used -f AI somehow didnt so ive created a rule for that
1
u/alexeiz 8h ago
You may laugh, but I have a co-worker who created a project with Claude and he doesn't know how the project is organized, what its dependencies are and where they come from, he doesn't know how to build it (he asks Claude to do it) or even run it (he has to ask Claude to run it). Needless to say, I'm not touching his project with a ten foot pole.
1
u/gandalfx 7h ago
2019:
gp2026:
gp1
u/Xenthera 6h ago
What about those of us who use fork where are we on the spectrum
1
u/wristcontrol 6h ago
... you name your remote branch differently than your local?
1
u/Shiro1994 6h ago
i went from git alias, and doing everything in git myself only in terminal to just let codex/claude handle this. Mundane task, can merge, split branches rebase etc without the hassle, it's awesome. But maybe I am already an AI crackhead and lost cause.
1
u/slaymaker1907 4h ago
Commit, push, create an MR, and watch the pipeline.
1
u/Lopsided-Dare-8119 4h ago
xkcd-1597 sums it up
1
u/yozaner1324 27m ago
Claude always seems to mess something up when it does anything more advanced with git than making a commit. Even if it writes a lot of the code, I do the branching, pushing, PRs, rebases, etc.
1
u/OZLperez11 11m ago
These guys are acting like they can't write a simple CLI command. I still write git push on a daily basis
1
u/abhi_neat 14h ago
I think a lot of us can’t hunt anymore, and few of us are still a good hunter. Same way you can still learn and practice writing code, but most might just prefer to pick up meat from supermarket.
These “good ol’ days” of programming posts are at par with millennials versus Gen Z posts. They all have a point maybe, but it’s still irrelevant.
1
u/DiscombobulatedSun54 12h ago
There are so many things that need to be updated and kept in alignment for the CI/CD pipeline to work correctly. I would be insane to attempt a manual push.
1
u/ortmesh 11h ago
Welcome to the dark side. I was skeptical about AI too but I embraced it. It’s just a fast way of working. Obviously you have to review everything carefully and you have to keep the PRs bite size.
1
u/Acharyn 7h ago
I specifically tell my agent not to touch git, it's in the root of every new project so the agent reads an onboarding file and won't touch git.
Don't let your agent touch git. Do it yourself.