When I open a project containing multiple Git repositories in subfolders, I’d like the Source Control tab to automatically detect those repositories and display their changes alongside the main repository.
Ideally, this would include:
Detecting nested repositories, including Git submodules.
Grouping changed files by repository, with each repository’s name and current branch visible.
Allowing me to review diffs, stage changes, and commit independently for each repository.
This would make working across related frontend, backend, and shared-library repositories much easier, with all changes visible in one place.
If this is already supported through a setting, I’d appreciate guidance on enabling it. Otherwise, could it be added or made easier to discover?
Hey @Cam-AS, good news, you can do this today. It just isn’t on by default.
Cursor ships with Git repository detection limited to files you have open, and submodule detection switched off (VS Code scans subfolders out of the box, which is why the behavior looks different). To get the view you’re describing, add this to your user settings (Cmd/Ctrl+Shift+P > “Preferences: Open User Settings (JSON)”):
Then fully quit and reopen Cursor (a plain window reload sometimes isn’t enough). Source Control will list every nested repo and submodule, each grouped separately with its own branch and commit box, and you can stage and commit them independently. If you want the compact list with branch names, open the “…” menu in the Source Control view and enable the Repositories section.
repositoryScanMaxDepth controls how many folder levels deep it looks (default is 1), so raise it if your repos are nested deeper.