How to Download a Specific File from GitHub

github

I only need one particular file from a project published on GitHub so it makes little sense to download the whole project. But I just can't find the download button.

Best Answer

If you're viewing the contents of the file itself there should be a "Raw" button.

get raw

You can either:

  • Right-click on that and select the "Save content as..." (or similar depending on your browser)
  • Click through to see the contents dumped onto the screen and save from there