Scanning folder for Git repositories

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:

  1. Change the repository detection mode. Open Settings (Ctrl+,), search for git.autoRepositoryDetection, and set it to openEditors. This skips the directory scan and only detects repos for files you actually open. This is the most effective workaround.

  2. 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.

  3. 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.