Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bootstrapping custom GitHub pages
git checkout --orphan gh-pages
git rm -rf .
git show master:README.md > README.md
cat > index.html <<END
---
---
<!doctype html>
<body>
{% capture readme %}{% include_relative README.md %}{% endcapture %}
{{ readme | markdownify }}
</body>
END
git add index.html README.md
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.