GitHub has a Project Pages feature that pulls from the gh-pages branch of a repository. It's explained here: http://pages.github.com/
I want the gh-pages branch to be an exact mirror of the Master branch. One way I found (here on Stack Overflow) is to run:
git config --add remote.origin.push +refs/heads/master:refs/heads/gh-pages
This causes each instance of git push
to push the Master branch of the repository into the gh-pages branch.
The trouble that I have with this solution is that I'm using the GitHub Mac App, which doesn't use a strict git push
. According to http://mac.github.com/help.html it does a git pull --rebase
. Additionally, even when I select Push
from the Repository menu, my git config line isn't adhered to.
So, I'm wondering if there is a way that fits well with the GitHub Mac App to get the gh-pages branch be an exact mirror of the Master branch.