How can I Download Sub-folders / files in GitHub Repository from CLI

I am trying get specific sub folders in a different repositories and would like to know how to run an automated script to get all desired subfolders downloaded to my local machine or pulled to my local git repo.

I have tried using the “sparse-checkout” on Git Bash however it does return the subfolders and their files as needed.

Any assistance on this will be appreciated.

Thanks!.
Caleb

1 Like

Hi

Check this Github documentation - it could help:

REST / API / Repository

It does require you to write script (?) or application for this

1 Like