I followed the instructions here to create a GitHub Pages-hosted blog using Octopress.
After the first deployment, two branches got created on GitHub: source
and master
.
Then I ran git branch
and I noticed I only have one of the two branches locally. I ran git pull
, expecting Git to download my other branch as well, but it instead merged the two branches.
I deleted my local repo and then did a git clone, expecting to get the two branches locally, but I Git only downloaded the master
branch of my Weblog.
Any ideas what have I done wrong and how can I get my two branches locally?
Update 1
Thanks for the answers. Just for sake of completeness, here's what I ended up doing:
git clone <github URL> -b source myblog
cd myblog
git clone <github URL> -b master _deploy
And then it was possible to continue with writing new posts, and deploying via rake deploy
.