There was a good link here about how the zip/tarball string is created
When I download a zip from github, what is the hex string at the end of the file name represent?
But I'm looking at the GitHub APIv3 and I was curious if I'm missing something.
wget your way out of the GitHub repo to get a tar file (archive):
wget --no-check-certificate https://github.com/User/repo/archive/master.tar.gz # better, if the certificate authorities are present: wget https://github.com/User/repo/archive/master.tar.gz
will get you a file named 'master' from the user 'User''s repo 'repo'.
The updated V3 API url is:
https://api.github.com/User/repo/:archive_format/:ref # # two possibilities for fomat: https://api.github.com/User/repo/tarball/master https://api.github.com/User/repo/zipball/master # from github example: $curl -L https://api.github.com/repos/octokit/octokit.rb/tarball > octokit.tar.gz
You can then
tar xpvf master, getting the full archive.
It will create a directory following the naming convention described in the question you mentioned.
No git binary is needed to get an archive from GitHub, thanks to their download service "Nodeload".