Skip to content

GitHub download zip

Rob Garrison edited this page Oct 22, 2018 · 19 revisions

A userscript adds download links so that downloaded filenames include the SHA

  • This userscript works on:
    • Main repo page "Clone or Download" dropdown. The download link is modified.
    • Repo commits page. Each commit can be downloaded as a zip file.
  • The zip is downloaded using the api, so the file name may or may not include the last tag associated with the commit.
  • See issue #62.
  • Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.

Examples

URL Name of downloaded file Details
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/master Mottie-GitHub-userscripts-v1.0.213-0-gaaafb00.zip user + repo + #? + "g" + SHA of last commit
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/v1.0.208 Mottie-GitHub-userscripts-v1.0.208-0-gaa9b2db.zip user + repo + #? + "g" + SHA of tagged version
https://api.github.com/repos/Mottie/GitHub-userscripts/zipball/31340a9 Mottie-GitHub-userscripts-v1.0.211-3-g31340a9.zip user + repo + #? + "g" + SHA of set SHA with last tagged version
https://api.github.com/repos/mozilla/pdf.js/zipball/gh-pages mozilla-pdf.js-078f568.zip user + repo + SHA of last commit in that branch

Screenshots

github-download-zip

github-download-zip-commits

Change Log

Version 0.1.0 (2018-10-22)

  • Initial commit.
Clone this wiki locally