Ways to improve git status performance

后端 未结 10 848
遇见更好的自我
遇见更好的自我 2020-12-02 06:51

I have a repo of 10 GB on a Linux machine which is on NFS. The first time git status takes 36 minutes and subsequent git status takes 8 minutes. Se

10条回答
  •  眼角桃花
    2020-12-02 07:23

    In our codebase where we have somewhere in the range of 20 - 30 submodules,
    git status --ignore-submodules
    sped things up for me drastically. Do note that this will not report on the status of submodules.

提交回复
热议问题