mkdir HM_FULL
cd HM_FULL
#初始化git仓库
git init
#添加远程
git remote add -f origin <origin_url>
例如 git remote add -f origin https://github.com/HMS-MLKit/MLKit.git
#配置sparse checkout
git config core.sparsecheckout true
#添加要下载的目录
echo “api/*”> .git/info/sparse-checkout
例如, echo “HDC/full/SkeletonDemo/”> .git/info/sparse-checkout
#下载
git pull origin master
结果如下:
完美。。