如何仅克隆某些目录的git仓库?
例如,我要下载PCL 3d_rec_framework。 这是PCL的git存储库:https : //github.com/PointCloudLibrary/pcl.git 如何下载该目录? https://github.com/PointCloudLibrary/pcl/tree/master/apps 我已经尝试运行,但是没有用: sam@sam:~/code/pcl_standalone$ git clone https://github.com/PointCloudLibrary/pcl/tree/master/apps/3d_rec_framework Cloning into '3d_rec_framework'... error: The requested URL returned error: 403 while accessing https://github.com/PointCloudLibrary/pcl/tree/master/apps/3d_rec_framework/info/refs fatal: HTTP request failed sam@sam:~/code/pcl_standalone$ 如何下载呢? 顺便说一句,我不想下载PCL的git并删除我不需要的所有其他目录。这就是为什么我问这个问题。 谢谢〜