I have a painfully simple jQuery plugin that I wrote and posted on github. I use Github for Windows and the site itself for project management.
Unfortunately, if I try to include any .js or .css files that I downloaded there through Raw links, it does not work in my browser due to the MIME type being plain/text .
So, over the past couple of hours, I have been learning how to get a copy of files through github that people can connect to (including me). The first step, apparently, is to create a project page (gh-pages branch) ... which I understood.
However, all the material that I have found so far, either expects you to have a UNIX-based system, or some kind of console blende:
Examples: GitHub , https://stackoverflow.com/a/212960/
It should now be an easy way to just make these source files available for inclusion. I went through the automatic steps to create a “project page” and now I’m presented with another branch that claims to be located behind the “master” branch, but I don’t see what I should do next. It’s not even clear to me why on earth I need to make another branch. All this seems a lot more complicated than necessary.
So, to repeat:
- I created an affiliate on Github (using a windows application and website)
- I can manage this and update my files without incident
- I cannot include .js and .css files using raw links
- I want to include these files on the page
- I would like to do this through Github for Windows or on the site itself
If anyone could help me get through this, I would appreciate it. Also, I would expect A LOT of others to be.
EDIT: Here is an example of a well-known Github project that has its files available through Github:
Select2 : http://ivaynberg.imtqy.com/select2/select2-3.4.2/select2.js
EDIT2: Well, conceptually, now I understand why I have to create a separate branch to share files - since the Github version control aspects are not intended to act like a CDN, the project page simply provides a public website on which you can host your files. So now the question arises: how to put files from the main branch to the gh-pages branch? I'm not worried about automating this or something right now, all I want is access to the directory structure, so I can put files there. I tried to synchronize and re-synchronize my branch with Github Windows, but it tells me that there is nothing to get from the gh-pages branch, even if it is "10 delayed". What's happening?
EDIT3: Added my own answer for what I came for (for now).