Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Branching for Github Pages
cd ~/Documents/GitHub
mkdir repo-name
cd repo-name
git clone git@github.com:username/repo.git master
git clone git@github.com:username/repo.git gh-pages
cd gh-pages
git checkout origin/gh-pages -b gh-pages
git branch -d master
git branch
Repo-Name
|-- master
|-- gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment