Cursor integrates with Git through the Source Control panel. After AI changes, always:
Review the diff carefully (Cursor shows AI changes highlighted)
Commit working changes frequently
Use descriptive commit messages
Create branches for experimental AI-driven changes
Git is your safety net. If AI breaks something, you can roll back. Commit often so you have fine-grained restore points.