What is my bottleneck when cloning a git repository from a virtual machine with a fast network connection?

后端 未结 6 1482
长情又很酷
长情又很酷 2021-02-03 21:59

I have a situation with a relatively large git repository located in a virtual machine on an elderly, slow host on my local network where it takes quite a while to do the initia

6条回答
  •  有刺的猬
    2021-02-03 22:27

    I'm bench marking git clone.

    It can be faster with --jobs options if the project include submodules ex:

    git clone --recursive --shallow-submodules --depth 1 --branch "your tag or branch" --jobs 5 --  "your remote repo"
    

提交回复
热议问题