This is a known bug with the Git extension’s repository scanning. It has been reported across multiple Cursor versions on Windows. A few things you can try:
-
Change the repository detection mode. Open Settings (
Ctrl+,), search forgit.autoRepositoryDetection, and set it toopenEditors. This skips the directory scan and only detects repos for files you actually open. This is the most effective workaround. -
Restart the built-in Git extension. In the Extensions panel, search for
@builtin git, click the gear icon on “Git”, choose Disable, then Enable it again, and Reload the window. -
Open the project folder directly rather than a parent or higher-level directory.
You can also find more details and discussion in this related thread: Source Control hangs on “Scanning workspace for Git repositories…”
Our team is tracking this for a fix. Let me know if the openEditors setting helps.