Lol. I experience this often with Google AI.
It uses Git for tracking sources. Fun thing - revert of Git commits is not enough. Google AI tries to revert reverted commits thinking it knows better even if I ask not to do it explicitly.
I say Google AI and not Gemini, because Google has some additions over Gemini in Firebase Studio prototyper, that is much more powerful for coding than Gemini.
The thing I enjoy in Gemini - it often replies "I don't know how to do it, do it yourself" :-D