I've been trying to stop the coding assistants from making git commits on their own and nothing has been working.
run them in a VM that doesn't have git installed. Sandboxing these things is a good idea anyways.
Which coding assistant are you using?
I'm a mild user at best, but I've never once seen the various tools I've used try to make a git commit on their own. I'm curious which tool you're using that's doing that.
Why not use something like Amp Code which doesn't do that, people seem to rage at CC or similar tools but Amp Code doesn't go making random commits or dropping databases.
Are you using aider? There's a setting to turn that off
require commits to be signed.
Don't give them a credential/permission that allows it?
hah - i'm the opposite, I want everything done by the AI to be a discrete, clear commit so there is no human/AI entanglement. If you want to squash it later that's fine but you should have a record of what the AI did. This is Aider's default mode and it's one reason I keep using it.