github download folder code example

Example 1: download directory from github

# use the web app below; simply copy and paste the github directory url
https://downgit.github.io/#/home

Example 2: uploading a folder to github

git init
     git add <folder1> <folder2> <etc.>
     git commit -m "Your message about the commit"
     git remote add origin https://github.com/yourUsername/yourRepository.git
     git push -u origin master
     git push origin master

Example 3: download subfolder from github

svn checkout https://github.com/user/repo/branches/mybranch/folder

Example 4: download a github folder

curl {url for downloading zip file} | 7z a -tzip {project name}-{branch name}/{folder path in that branch}