Last Updated: February 25, 2016
·
1.664K
· tommica

Github - Automagically keep master and gh-pages in sync

Add these two line to the ".git/config" [remote “origin”] section:

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

Source: http://stackoverflow.com/questions/5807459/github-mirroring-gh-pages-to-master#answer-7472481

1 Response
Add your response

Saved my day, thanks

over 1 year ago ·