Skip to content

Instantly share code, notes, and snippets.

View ryanfaircloth's full-sized avatar

Ryan Faircloth ryanfaircloth

View GitHub Profile
@ryanfaircloth
ryanfaircloth / gh-pages.index.yaml
Last active December 1, 2023 21:00 — forked from ramnathv/gh-pages.md
Creating a clean gh-pages branch
### Creating a clean gh-pages branch
This is the sequence of steps to follow to create a root `gh-pages` branch. It is based on a question at [SO]
``` {shell}
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "apiVersion: v1
entries:" > index.yaml