Skip to content

Instantly share code, notes, and snippets.

@gkthiruvathukal
Created November 10, 2019 15:07
Show Gist options
  • Save gkthiruvathukal/4ab9c3beaf1f189fd96c8f1ef7e3b4a9 to your computer and use it in GitHub Desktop.
Save gkthiruvathukal/4ab9c3beaf1f189fd96c8f1ef7e3b4a9 to your computer and use it in GitHub Desktop.
Create orphan branch blank HTML
#!/bin/bash
git checkout --orphan gh-pages
git rm -rf .
touch index.html
git add index.html
git commit -m 'initial gh-pages commit'
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment