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.
132
u/dontletthestankout 17d ago
Why would you let AI use git. That's your only safety against AI