Cannot rename master branch on Github-hosted Jekyll blog?

I renamed my master branch and found that my Jekyll blog hosted on github stopped working. Is there a constraint that the default branch is called ‘master’?

1 Like

I don’t know if GitHub has fully transitioned everything to work with the master branch rename change coming soon. I would think all you’d need to do is change the default branch to point to whatever you renamed it too.

https://help.github.com/en/github/administering-a-repository/setting-the-default-branch

That said GitHub Pages currently supports three methods of publishing. master branch, master branch with a docs/ folder, or a gh-pages branch.

https://help.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site

1 Like

If are running your project on github user pages. Then by default it deploy from master branch. :grinning: