git can I speed up committing?

前端 未结 3 1678
走了就别回头了
走了就别回头了 2021-02-04 01:02

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

3条回答
  •  走了就别回头了
    2021-02-04 01:58

    You can try enabling the preloadindex option, described in the git-config man page:

    core.preloadindex

    Enable parallel index preload for operations like git diff

    This can speed up operations like git diff and git status especially on filesystems like NFS that have weak caching semantics and thus relatively high IO latencies. With this set to true, git will do the index comparison to the filesystem data in parallel, allowing overlapping IO's.

    To turn this on use:

    git config core.preloadindex true
    

提交回复
热议问题