I’m working on a solo project so I’m just working on main for most things. I’ve been using the new “commit and push” button (Not “Create branch, commit and push”), but its still creating a new branch every-time.
This is most likely caused by a Branch Prefix setting in your Git configuration. When a branch prefix is set, Cursor will instruct the agent to create a new branch before committing — even when you select “Commit & Push” — as a guardrail to prevent accidental pushes to the default branch.
To fix this:
Open Cursor Settings (gear icon or Cmd+,)
Go to Features
Scroll to the Git section
Check if the Branch Prefix field has a value (e.g., cursor/ or similar). If so, clear it
Once cleared, “Commit & Push” should commit and push directly to your current branch without creating a new one.
If you don’t have a branch prefix set and the issue persists, let me know and I’ll dig deeper!
The screenshot confirms the cause. You have cursor/ set as your Branch Prefix — clear that field entirely, and “Commit & Push” should work as expected, committing directly to your current branch without creating a new one.