Last Updated: February 25, 2016
·
792
· sindresorhus

GitHub Pages updated on push

Usually you have your site in the gh-pages branch and your project in master. Or maybe you have both in the same branch but push to both.

There is a simpler way to do it.

Make gh-pages the default and only branch and keep both project and site in this branch. When you push, both will be updated.

To change default branch, just click the Admin tab on your repo and select the intended branch