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

结果如下:
在这里插入图片描述
完美。。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐