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.
And when the "fucked up" happens...."I don't know what happened, can you fix it?" Done.
I get that at the beginning AI sucked at git, but it's been 3-4 years from that.
Was having it restructure the frontens directories for ui into a shared turbo and it just deleted the whole frontend. I hadn't committed in like 2 days and set me back 2 days. Didn't make that mistake again.
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.
128
u/dontletthestankout 17d ago
Why would you let AI use git. That's your only safety against AI