I’ve just pushed my first repo to github but when I browse my html it is served as txt. Is this something that I can set similar to svn’s props? Or is this simply a github inadequacy?
I can’t seem to find anything on git, github or here that helps.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Git, unlike SVN is not concerned with individual files, rather with commits so I believe you cannot set mime-type props on files. On the other hand, github is a “code hosting site”, which manages your code repositories and is only concerned about showing code. The exception from this rule is README files, where you can sort-of specify different formats (like .markdown) and render them as semi-HTML and wiki pages.
If what you want is to host your HTML files (like in a webserver) then github is not the place to do it. Rather, you can keep your files under github’s version control, but check out and serve them from a webserver like apache.