Need to remember this (easy sync of gh-pages on github)

(via [1] and [2])

add the following to the [remote "origin"] section of .git/config:

push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master

and whenever you push to origin, it pushes the code on your local master branch to both remote branches.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.