I'm using a multi-container VS Code dev environment exactly as recommended in the docs. My different service environments successfully run using the Dev Containers: Open Folder in Container...
as suggested.
Inside the VS Code terminal (in the Docker service container), after every command (e.g. ls
) the terminal loads for 5-10 seconds and says Refresh index: 100% (805/805), done
which appears to be git
refreshing the index. This makes the terminal unusable - how can I stop this?
I think this is happening because the .git
folder is part of the workspace volume and is thus copied from my host OS of Windows 11 to my container OS - Linux (Debian 11). But this is what the docs suggest and I need the .git
folder to use git inside the repo.