Skip to content

Instantly share code, notes, and snippets.

View osterhoutan's full-sized avatar

Andrew Osterhout osterhoutan

View GitHub Profile
@osterhoutan
osterhoutan / save-file-from-github.md
Last active August 19, 2020 22:12
Instructions for how to save individual text files from GitHub.

Save a single file from GitHub:

  1. Select the file in the directory to view it like you normally would.
  2. Click the "raw" button (like you did), to get the "raw" form of the text file sent to your machine
    • The "raw" button is usually the left-most option of the 4-8 button located in the top right of the file preview applet image of raw button
    • This directs you to a URL where instead of a HTML file containing a web-page is sent to your browser to view, it jsut sends the file itself.
      Which your browser will display as plaintext, like a read-only text editor, but once again this is not a webpage this is the actual file.
  3. Either press ctrl+s (cmd+s) or Right click and select the "Save as.." option