# When a folder contains multiple git entries, the cursor is not correctly identified

**URL:** <https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108>\
**Category:** Bug Reports\
**Tags:** worktrees\
**Created:** [April 27, 2026, 6:54am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108 "2026-04-27T06:54:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Misty\_Alexander](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Misty\_Alexander](https://forum.cursor.com/u/Misty_Alexander)\
**Post date:** [April 27, 2026, 6:54am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108/1 "2026-04-27T06:54:24Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

I have frontend and backend folders in a project folder, each with a Git repository, but the cursor isn’t recognizing them.

### Steps to Reproduce

Create a folder, then create two subfolders inside it. Run `git init` on each subfolder.

### Expected Behavior

Normal display

### Screenshots / Screen Recordings

 ![屏幕截图 2026-04-27 145222.png](https://us1.discourse-cdn.com/cursor1/original/3X/a/1/a159d33a64f8a02e0fd6f4734751fb257b9f9eef.png)

### Operating System

Windows 10/11

### Version Information

Version: 3.2.11 (user setup)  
VSCode Version: 1.105.1  
Commit: e9ee1339915a927dfb2df4a836dd9c8337e17cc0  
Date: 2026-04-24T14:36:47.933Z  
Layout: glass  
Build Type: Stable  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Windows\_NT x64 10.0.26200

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 27, 2026, 6:54am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108/3 "2026-04-27T06:54:33Z")

</div>

Unlisted on April 27, 2026, 6:54am UTC



---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 27, 2026, 6:54am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108/4 "2026-04-27T06:54:35Z")

</div>

Hi,

Thanks for posting on the Cursor forum!

To help ensure most of our users can participate in discussions, this forum is currently English only.

If you’d like, you can edit your post to translate it into English. Once it meets our guidelines, it will be automatically relisted.

Thanks for understanding!

_Note: This is an automated detection system and sometimes makes mistakes. If your post is already in English, feel free to ignore this message, or just make a small edit and it will be reviewed again._

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 27, 2026, 6:56am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108/5 "2026-04-27T06:56:42Z")

</div>

Listed on April 27, 2026, 6:56am UTC



---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [April 27, 2026, 8:12am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108/9 "2026-04-27T08:12:19Z")

</div>

Hey, this is a known bug with detecting multiple git repos in one workspace on our side, and we’re tracking it. No ETA for a fix yet.

A couple similar reports:

- [Cursor not recognizing all of git repos within workspace](https://forum.cursor.com/t/cursor-not-recognizing-all-of-git-repos-within-workspace/145271)
- [Git source control not detected in multi-root .code-workspace](https://forum.cursor.com/t/git-source-control-not-detected-in-multi-root-code-workspace/158147)

Workarounds that help some users:

1. Create a multi-root workspace via `File > Add Folder to Workspace`, add `frontend` and `backend` as separate roots, then save it as a `.code-workspace`. In this setup, Source Control usually picks up both repos more reliably than when you open the parent folder.
2. Check your settings (Settings, search for `git.`):
  - `git.autoRepositoryDetection`: set to `true` or `subFolders`
  - `git.repositoryScanMaxDepth`: increase to `2` or higher

3. If the repos still don’t show up, open one file from each repo. Sometimes that triggers detection.

If none of that helps, reply here and I’ll add your report to the issue. If we get an update on the fix, I’ll post it in the thread.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 27, 2026, 8:13am UTC](https://forum.cursor.com/t/when-a-folder-contains-multiple-git-entries-the-cursor-is-not-correctly-identified/159108/10 "2026-05-27T08:13:14Z")

</div>

Closed on May 27, 2026, 8:13am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
