Is there a way to limit the amount of memory that “git gc” uses?

后端 未结 5 1934
太阳男子
太阳男子 2020-11-29 00:12

I\'m hosting a git repo on a shared host. My repo necessarily has a couple of very large files in it, and every time I try to run \"git gc\" on the repo now, my process get

5条回答
  •  情歌与酒
    2020-11-29 01:06

    I used instructions from this link. Same idea as Charles Baileys suggested.

    A copy of the commands is here:

    git config --global pack.windowMemory "100m"
    git config --global pack.packSizeLimit "100m"
    git config --global pack.threads "1"
    

    This worked for me on hostgator with shared hosting account.

提交回复
热议问题