Skip to content

Instantly share code, notes, and snippets.

View QWxleA's full-sized avatar

Alex QWxleA

View GitHub Profile
@QWxleA
QWxleA / create_gh-pages_branch.sh
Created January 31, 2017 20:01
Create an orphan gh-pages directory in master
#!/usr/bin/env bash
#
# Run this in a repo checked out from github
#create gh-pages branch
git checkout --orphan gh-pages
git reset
echo "My new site" >> index.html
git add index.html
git commit --allow-empty -m "Initial commit gh-pages"