Download a single folder or directory from a GitHub repo

(Priyankamakke) #1

How can I download only a specific folder or directory from a remote Git repo hosted on GitHub?

Say the example GitHub repo lives here:

Its directory structure:


I want to download only the foo folder and not clone the whole Test project.

(Eric Rosado) #2

Hi @priyankamakke! Have you seen this resource on the subject: