Skip to content

Instantly share code, notes, and snippets.

@atenni
atenni / README.md
Last active Jun 13, 2020
How to permalink to a gist's raw file
View README.md

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

You can’t perform that action at this time.