AI Commit Message
Cursor generates commit messages from staged changes.- Stage files to commit
- Open the Git tab in the sidebar
- Click the sparkle (✨) icon next to the commit message input
Add shortcut
To bind to a keyboard shortcut:- Go to Keyboard Shortcuts (Ctrl+R+Ctrl+S or Ctrl+Shift+P and search “Open Keyboard Shortcuts (JSON)”)
- Add this binding for Ctrl+M:
- Save
You cannot customize commit message generation. Cursor adapts to your existing commit style.
AI Resolve Conflicts
When merge conflicts occur, Cursor Agent can help resolve them by understanding both sides of the conflict and proposing a resolution.How to use
- When a merge conflict occurs, you’ll see the conflict markers in your file
- Click the Resolve in Chat button that appears in the merge conflict UI
- Agent will analyze both versions and suggest a resolution
- Review the proposed changes and apply them