3 ms·
You can create a local git containing only the gh-pages branch: mkdir my-project-pages cd my-project-pages git init git remote add origin git@g
by ajross 15y ago
You can create a local git containing only the gh-pages branch:
mkdir my-project-pages
cd my-project-pages
git init
git remote add origin git@github.com:myusername/myproject.git
git pull origin gh-pages
Now just treat them as distinct "repos" and push independently. The basic idea here is that you're breaking up "clone" (which by default pulls everything) into its composite steps.