Plz add a download button within large solutions that offer samples it’s a pain having to use cli #145504
Replies: 1 comment
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
The problem
Please add a way to download a whole folder via the gui. I know this can already be done via cli take for example uno repo here u see there is a sample app Ano u can get it the folder by cli but would prefer a button to be accessible at folder level
if there is sub folders the button should ask do u want to include sub folders
The solution
Have a button when inside folders show a popup with a check box download sub folders compress as a zip file for the user to use the sample
Alternatives
To download only a specific directory from a GitHub repository without cloning the entire repo, you can use the following methods:
git init git remote add origin <repository_url> git config core.sparseCheckout true echo "<directory_path>/*" >> .git/info/sparse-checkout git pull origin main
Replace <repository_url> with the URL of the repository and <directory_path> with the path to the directory you want to download. This approach is detailed in a Stack Overflow discussion.
Using DownGit: DownGit is a web tool that enables downloading specific directories or files from GitHub. Simply enter the URL of the directory you wish to download, and it will generate a direct download link.
Using degit: If you're comfortable with Node.js, degit is a tool that allows you to clone a specific directory from a repository. Install it using npm:
npm install -g degit
Then, use it to clone the desired directory:
degit <repository_url>/<directory_path> <destination_folder>
Replace <repository_url>, <directory_path>, and <destination_folder> accordingly.
These methods should help you retrieve only the specific directory you need without downloading the entire repository.
Additional context
No response
Do you plan to work on this subject?
Beta Was this translation helpful? Give feedback.
All reactions