Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download a folder from github?

I wished to download the mysite folder from this link: https://github.com/username/repository/master/

like image 873
Gangesh Avatar asked Oct 11 '15 15:10

Gangesh


People also ask

How do I download a folder from GitHub?

Step1: Input github url to the field at the top-right. Step2: Press enter or click download for download zip directly or click search for view the list of sub-folders and files. Step3: Click "Download Zip File" or "Get File" button to get files.

How do I copy a folder from GitHub to my desktop?

If you want to add some folder to your existing GitHub repository then clone it to your computer, copy-paste folder into it (on desirable place in structure) , commit and push to GitHub remote.


1 Answers

You can download a file/folder from github

Simply use: svn export <repo>/trunk/<folder>

Ex: svn export https://github.com/lodash/lodash/trunk/docs

Note: You may first list the contents of the folder in terminal using svn ls <repo>/trunk/folder

(yes, that's svn here. apparently in 2016 you still need svn to simply download some github files)

like image 78
Anona112 Avatar answered Oct 15 '22 01:10

Anona112