OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Download a single folder or directory from a GitHub repository

  • Thread starter Thread starter g_inherit
  • Start date Start date
G

g_inherit

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

Say the example GitHub repository lives here:

Code:
[email protected]:foobar/Test.git

Its directory structure:

Code:
Test/
├── foo/
│   ├── a.py
│   └── b.py
└── bar/
    ├── c.py
    └── d.py

I want to download only the foo folder and not clone the whole Test project.
<p>How can I download only a specific folder or directory from a remote Git repository hosted on GitHub?</p>
<p>Say the example GitHub repository lives here:</p>
<pre class="lang-none prettyprint-override"><code>[email protected]:foobar/Test.git
</code></pre>
<p>Its directory structure:</p>
<pre class="lang-none prettyprint-override"><code>Test/
├── foo/
│ ├── a.py
│ └── b.py
└── bar/
├── c.py
└── d.py
</code></pre>
<p>I want to download only the <strong>foo</strong> folder and not clone the whole Test project.</p>
Continue reading...
 

Latest posts

Top