2

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.

0

1 Answer 1

5

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 agree to our terms of service and acknowledge you have read our privacy policy.

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