How to shallow clone a local git repository with a relative path?

前端 未结 3 936

Shallow clones of local directories require file:// as explained at: git clone: warning: --depth is ignored in local clones; use file:// instead

But how

3条回答
  •  既然无缘
    2020-12-16 21:09

    You should try without the file:// prefix:

    git clone --depth 1 ./mymodule mymodule2
    

提交回复
热议问题