# Can only access main folder in source control

**URL:** <https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432>\
**Category:** Bug Reports\
**Created:** [March 20, 2026, 10:01pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432 "2026-03-20T22:01:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arebhjelle](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arebhjelle/32/102618_2.png) [@Arebhjelle](https://forum.cursor.com/u/Arebhjelle)\
**Post date:** [March 20, 2026, 10:01pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/1 "2026-03-20T22:01:02Z")

</div>

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

Cursor IDE

### Describe the Bug

I select the main folder, yesterday i could se all the folders in source control, but today i only see top folder.

### Steps to Reproduce

Create a repo, drag and drop the other folders in to this repo

### Operating System

MacOS

### Version Information

Version: 2.6.20 (Universal)

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [March 23, 2026, 10:15am UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/5 "2026-03-23T10:15:52Z")

</div>

Hi Arebhjelle!

Thanks for reporting this. To help narrow down what’s happening, could you clarify a couple of things about your workspace setup?

1. How did you open the folders in Cursor? Did you open a single parent folder that contains other git repos inside it, or did you use File \> Add Folder to Workspace to add multiple folders (creating a multi-root workspace)?

2. Are the “other folders” separate git repos (each with their own `.git` folder), or are they regular folders within a single git repository?

3. Could you share a screenshot of your Source Control panel showing the current state? This would help us see exactly what’s being displayed.

This is a known area where Cursor’s Source Control panel can behave differently from VS Code, particularly with multi-root workspaces or nested repositories. A few things to try in the meantime:

- If you have multiple git repos, try opening them as a multi-root workspace using File \> Add Folder to Workspace rather than opening a single parent folder that contains them

- Check if the repos appear after opening a file from one of the “missing” folders

You may also find these related threads helpful:

- [Source Control not showing repositories in workspaces](https://forum.cursor.com/t/source-control-not-showing-repositories-in-workspaces/129917)

- [Cursor not recognizing all of git repos within workspace](https://forum.cursor.com/t/cursor-not-recognizing-all-of-git-repos-within-workspace/145271)

---

<div class="post-metadata">

**Author:** ![Arebhjelle](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arebhjelle/32/102618_2.png) [@Arebhjelle](https://forum.cursor.com/u/Arebhjelle)\
**Post date:** [March 23, 2026, 11:31am UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/7 "2026-03-23T11:31:16Z")

</div>

@mohitjain  
Thanks.

I opened directory which is repository and it contains two directories which are also repositories.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/f/bf8075d080b6ff03053cba3fddaaaf42561f20af.png)

In VS code: everything works just fine:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/3/d31f4c649bd08a49cc484a6212d1bc0a3334369d.png)

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [March 23, 2026, 2:10pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/8 "2026-03-23T14:10:12Z")

</div>

Hey there,

Thanks for sharing the screenshots, they really helped clarify what’s going on.

The issue comes down to a difference in default settings between Cursor and VS Code. In Cursor, `git.autoRepositoryDetection` is set to `"openEditors"`, which means it only detects repositories when you have files from them open. VS Code, on the other hand, defaults this setting to `true`, so it actively scans all subfolders in your workspace for repositories on startup.

It also explains the behavior you saw yesterday — if you had files from `adminflow` or `adminflow-backend` open at the time, Cursor would have detected those repositories via the open editors. Without those files open today, no scan was triggered.

To fix this permanently, you can update your Cursor settings:

1. Open Command Palette (`Cmd + Shift + P`)

2. Select **“Preferences: Open User Settings (JSON)”**

3. Add the following line:

```json
"git.autoRepositoryDetection": true

```

After saving, restart Cursor — all three repositories should then appear in Source Control.

Let me know if that does the trick or if anything still looks off.

---

<div class="post-metadata">

**Author:** ![Arebhjelle](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arebhjelle/32/102618_2.png) [@Arebhjelle](https://forum.cursor.com/u/Arebhjelle)\
**Post date:** [March 23, 2026, 7:44pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/9 "2026-03-23T19:44:03Z")

</div>

Thanks @mohitjain  
When doing that it looks like this:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/f/bf598098346779c85c3903fad6bedb0a561e7aff.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/f/5/f53719fb35e3adc827531363728a416deba291bf.png)

While in VS code:  
Where I also can switch between branches (which i cannot in Cursor now)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/4/843e96db7e2c024ebe27635bbaa90bab973c54c7.png)

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [March 24, 2026, 1:06pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/10 "2026-03-24T13:06:09Z")

</div>

The setting requires a full restart to take effect. **Cmd+Q** to quit Cursor, then reopen the workspace. Alternatively, **Cmd+Shift+P** → **“Developer: Reload Window”**.

After that, all three repos should appear in Source Control with their own branch controls.

If they still don’t show after restarting, open each repo folder individually via **File → Add Folder to Workspace** instead of opening the parent folder.

---

<div class="post-metadata">

**Author:** ![Arebhjelle](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arebhjelle/32/102618_2.png) [@Arebhjelle](https://forum.cursor.com/u/Arebhjelle)\
**Post date:** [March 30, 2026, 8:09pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/11 "2026-03-30T20:09:03Z")

</div>

Thanks @mohitjain It is not working if i select the top directory. It does work if i select the two sub directories (repos). It does work in vs code

---

<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 21, 2026, 8:09pm UTC](https://forum.cursor.com/t/can-only-access-main-folder-in-source-control/155432/12 "2026-04-21T20:09:54Z")

</div>

Closed on April 21, 2026, 8:09pm UTC

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