InterData

Get a Quote

If you require any of our services listed on this site, please fill out this form with as many details as possible in the description field. This will enable our support team to understand and make a better decision regarding your requirements.

Edit Template

Get a Quote

If you require any of our services listed on this site, please fill out this form with as many details as possible in the description field. This will enable our support team to understand and make a better decision regarding your requirements.

Edit Template

Download a single folder/directory from a BRANCH in GitHub repo

I wanted to download a folder from the GitHub branch. But how can we download only a folder (or part of the source), there is no option on the GitHub website to download a folder.

At the time of writing this easiest way to do this is to use the code sandbox.

Here is the magic

Open repo to code sandbox by replacing github to githubbox in URL. Then on code sandbox go to files pain on the left and hover the mouse over the down arrow, it will show a popup tooltip “Export to Zip”. Just click on it to download the folder as a zip file.

code editing

Here is an example

In this example I am downloading the “RazorPagesWeb-CSharp” folder from the “aspnetcore” repo in github. The folder structure is similar to this:

aspnetcore/
├── main/ 
│   ├── .......
│   ├── docs
│   ├── ....... 
│   ├── src 
│   └── ....... 
└── release/2.2
    |...........
    ├── docs
    ├── .........
    └── src
     |...........
     └─── Templating
      	|...........
        ├── src
        │    |...........
        │    ├── Microsoft.DotNet.Web.ProjectTemplates
        │    │  |...........
        │    │  └─── content
        │    │      |...........
        │    │      └── RazorPagesWeb-CSharp
	│    │
        │    │...........
        ├
        │...........
    
     
     

To get the following small size folder from the huge aspnetcore repo:

https://github.com/dotnet/aspnetcore/tree/v2.2.13/src/Templating/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp

Just change only the github.com part of the URL to githubbox.com as shown below:

https://githubbox.com/dotnet/aspnetcore/tree/v2.2.13/src/Templating/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp

Note:

This article was first published in my blogspot site. Due to storage issues I decided to move it here.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • All Posts
  • Articles
  • Default
  • IT Services
  • Software
  • Web
    •   Back
    • Computer Hardware
    • Networking
    •   Back
    • Design
    • Marketing
    • Social Media
    • Web Development
    •   Back
    • News
    •   Back
    • Programming
Monolithic Architecture

Wednesday, 2, October, 2024/

Understanding Monolithic Architecture in Software Development 📢 Monolithic architecture is a traditional model for designing software applications. It is a...

Load More

End of Content.

Stay Tuned...

© 2023 – 2025  InterData.au

Black Friday Sale - 50% Discount

Day
Hr
Min
Sec
Yes, I Want This!
No Thanks, I don't want to save