Hey, thanks for the question. Cursor doesn’t have a built-in auto-commit feature for Git, but you can use the following:
Timeline feature:
- Right-click a file → select “Open Timeline”
- Shows previous revisions that Cursor saves automatically
- Helps recover lost changes
MCP Git server:
- Install an MCP Git server that runs after each completed task
Git best practices:
- Commit manually after each AI conversation or significant change
- Add Cursor rules so the model can trigger actions automatically
- Simple workflow:
git add . → git commit -m "message"at the end of each session
Extensions:
- Install “Local History” or “Auto Git Commit”
- They can automate commits on file save
In the meantime, you can recover files via Timeline.