Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 277647  / 2 Years ago, sat, september 17, 2022, 6:27:03

For example, I want to download PCL 3d_rec_framework.


This is the git repository of PCL: https://github.com/PointCloudLibrary/pcl.git


How can I download this directory?


https://github.com/PointCloudLibrary/pcl/tree/master/apps


I tried this, but it didn't work:


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$

I don't want to download git of PCL and remove all other directories that I don't want.


How do I download just a single directory?


More From » git

 Answers
0

You cannot. With git, you clone the entire repository, and the full history of the repository.



There are some workaround solutions to be able to get a single file out of a git archive, listed on a Stack Exchange answer for the same question, but you will still have to download the entire repository to get that single file or directory you want.


[#25426] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sipwing

Total Points: 245
Total Questions: 100
Total Answers: 118

Location: Aland Islands
Member since Thu, Oct 22, 2020
4 Years ago
sipwing questions
Sun, May 29, 22, 22:00, 2 Years ago
Fri, Jun 24, 22, 08:46, 2 Years ago
Fri, Dec 23, 22, 00:04, 1 Year ago
;