Search code examples
gitgithubjekyllgithub-pagesjekyll-extensions

Point github repo to gh-pages not master


My old website was simple jekyll code kept on master. Now, I revamped website and also started using jekyll-assets plugin. I just came to know that, github pages doesn't support custom plugins, so, I'm in trouble since I've used it at many places.

Now, I've found work around to create a gh-pages branch and push compiled version over there. Earlier, I was not doing it since, github pages was using master to compile jekyll code.

I've also include .nojekyll in my master to not compile jekyll code - that didn't help either, github pages is still pointed to master.

Is there any way I can change this pointing?


Solution

  • According to GitHub documentation if we've something like username.github.io it will point to master, it will NOT track gh-pages even if we want to, (so your jekyll code should be in the master in this case), for Projects repo, your published code has to be under gh-pages branch.

    As of now I followed a great trick mentioned here.