Creating a permanent link to a file on github – branch, tag or commit id supported

This is just another “note to myself” thing… don’t expect too much magic here, but as you came here, you seem to have the same goal as I did:

I want to link to a specific file on github using its tag, so that it is a permanent link. exactly tells you how to create a permant link using a branch name or commit id. What they do not tell you is: You can also use a tag name.

The example given in above documentation would easily be written as:

to permanently link to the file of the v3.1.1 release.

Easy, right?