I have a big repository in a shared folder.
I use git from within a VM on that folder.
Everything works nice, but the repository is big
and git\'s searching through all director
As an alternative to changing your natural workflow, you could work on a clone that lives in a directory that's private to the VM. Then you push to the repository on the shared folder (which can probably be a bare repository) only when you want to publish your work to the outside environment.