This is more involved explanation of Part 1:
The basics of what’s going on here is pretty simple. Take our original link:
The first couple of parts is pretty simple
Followed by the user:
… the repo name:
… the type (This is basically what you’re looking at. If you’re looking at the repository itself it’ll say “tree”):
… the jibberish:
If you look real close as “the jibberish” you’ll notice it’s simply the commit number. The problem then stems if you want to link to the latest version you obviously don’t want to link to an individual commit. If you do then if you ever update you’ll have to update your link too! So instead we replace the commit key with “master” which instructs it to goto the latest version.
and finally the file:
I hope that helped!
Enjoy the Penguins!