sas*_*alm 12 git git-clone shallow-clone
我们在本地网络中的共享文件夹上有一个远程存储库.我试图做一个浅的克隆:
git clone --depth 1 //gitrepos-pc/git/foo/
Run Code Online (Sandbox Code Playgroud)
它给了我这个警告,并做了一个完整的克隆:
warning: --depth is ignored in local clones; use file:// instead.
Run Code Online (Sandbox Code Playgroud)
sas*_*alm 12
好吧,经过一些实验,我得到了它,我不得不使用
git clone --depth 1 file:////gitrepos-pc/git/foo/
Run Code Online (Sandbox Code Playgroud)
它必须是4个斜线,而不是3个,这有点出乎意料.我仍然不确定为什么坚持,file:////
但我想这只是一个怪癖.
归档时间: |
|
查看次数: |
3014 次 |
最近记录: |