我需要从Chromium存储库中克隆native_client_sdk子目录,因为存储库很大,我没有资源可以下载它。答案Is there any way to clone a git repository's sub-directory only?没有帮助,因为git仍在下载整个回购。
$ git init
$ git remote add -f origin https://chromium.googlesource.com/chromium/src
Updating origin
remote: Sending approximately 4.44 GiB ...
remote: Counting objects: 222129, done
remote: Finding sources: 100% (438/438)
Receiving objects: 0% (6064/7199440), 3.07 MiB | 174.00 KiB/s