I have a few .js, .html, and .css files on my GitHub. I'd like to make these files publicly accessible as libraries to anyone with an internet connection.

Is this possible?

Currently, the URLs to my pages are GitHub versions of the code not the actual file. I just want a URL for the actual file.

migrated from superuser.com Dec 27 '12 at 19:45

This question came from our site for computer enthusiasts and power users.

up vote 5 down vote accepted

The raw files for GitHub repositories are stored at:

https://raw.github.com/user/repository/branch/filename

For example:

https://raw.github.com/slhck/dotfiles/master/.zshrc

You can access this file by clicking the Raw button for a file:

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.