Generate download link for a single folder in GitHub

KyleMit picture KyleMit · May 2, 2014 · Viewed 35k times · Source

I have a repository that has several folders of code. I'd like to be able to provide a link to the code in a single folder so another user could download just the relevant bits of code without being bloated by the rest of the codebase and without requiring that they have git installed on their machine.

Of course, they can browse the code files inside of the folder online, but that isn't very helpful if they want to run a single project.

Here are several other similar questions, and why I don't think they address my particular issues:

In case it helps provide a concrete example, here's a folder that I would like to be able to download via a link:
https://github.com/KyleMit/CodingEverything/tree/master/MVCBootstrapNavbar/Source%20Code

Is there any way to do this?

Answer

Minhas Kamal picture Minhas Kamal · Aug 10, 2016

Go to DownGit > enter the URL > simply download!

Your desired download link for https://github.com/KyleMit/CodingEverything/tree/master/MVCBootstrapNavbar/Source%20Code- DOWNLOAD [this link is no more valid as the repo folder moved]

Detailed usage HERE.


Disclaimer: I fell into the same problem as the question-asker, could not find any proper solution, so I created this tool for my own use, and later made it available for everyone.