-
Notifications
You must be signed in to change notification settings - Fork 129
The branch used for GitHub Pages should be configurable #212
Comments
That means that using GitHub as a CDN is probably not the optimal way. Other than that, a custom name for the GitHub Pages branch is a very good idea. |
GitHub now allows users to select the source for GitHub Pages from a few different options, including the root of the |
Would be awesome to have ability to launch multiple branches to try PRs before merging. |
@waterplea hear hear! |
This would be nice to have, especially now with the IETF recommendation against the use of the word "master." It should use the default branch or |
Agree @kmcclellan, our team is considering moving to |
I just moved my website over to |
I just had exactly the same experience. It's frustrating that GitHub Pages was just silently disabled. |
Right now the way GitHub Pages work is kind of inconsistent:
In either case, it will create a virtual host for whatever domain you list in the CNAME file, as well as a directory under the user or organization on github.io.
The shortcoming of this means that, if you have a repo that exists only to be used for GitHub Pages, you have to use "gh-pages" as the name of your default branch (unless you're also using it as your github.io repo, in which case that will break and you need to use "master" instead).
(Also, from what I can tell with https://github.com/plushu/plushu.github.io, if you rename a repository to or from username.github.io, it loses all track of where it's supposed to pull from and everything just goes straight to hell.)
GitHub allows users to configure which branch of the repository acts as the default branch: GitHub should also allow users to choose which branch is used for files on GitHub Pages
Allowing users to more freely use other branches as for GitHub Pages (such as the master branch of a JavaScript library) would also make it much smoother to host your libraries directly from GitHub as a CDN (a feature users are themselves trying to hack with solutions like RawGit).
The text was updated successfully, but these errors were encountered: