How can I use a non-master branch for the User Github pages
The Github pages are good, but it requires static files to show up on the branch master
. This is problematic for me because I intend to generate blog post files from source, and I like this code in the main. The Github page for the project uses a branch gh-pages
. Is there some way I can tell github to use this branch for user repo pages?
source to share
There is no way to do this as the required branch names are hardcoded into the Github page implementation. One thing you can do is create a project page and treat it like a custom page, which works even better if you've set up your own domain .
A simple workaround would be to create a branch with a different name and treat it as your master branch. It won't be called "master", but after all, every branch is like Git anyway, so this is just a semantic issue.
source to share