Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bootstrapping custom GitHub pages
git checkout --orphan gh-pages
git rm -rf .
git show >
cat > index.html <<END
<!doctype html>
{% capture readme %}{% include_relative %}{% endcapture %}
{{ readme | markdownify }}
git add index.html
git commit -m 'Update GitHub pages'
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.