Use subtree to push to only push public gh-pages branch git subtree push --prefix public origin gh-pages