download directory from github

C++
# use the web app below; simply copy and paste the github directory url
https://downgit.github.io/#/homesvn checkout https://github.com/user/repo/branches/mybranch/folder
curl {url for downloading zip file} | 7z a -tzip {project name}-{branch name}/{folder path in that branch}

Source

Also in C++: