Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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.

share|improve this question

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

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

add comment

1 Answer 1

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:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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