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
Written by Sindre Sorhus
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Github
Authors
jjperezaguinaga
90.17K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#