Skip to content

Instantly share code, notes, and snippets.

@halvves
Last active October 29, 2015 03:07
Show Gist options
  • Save halvves/a814a1ac6c58c4d39b20 to your computer and use it in GitHub Desktop.
Save halvves/a814a1ac6c58c4d39b20 to your computer and use it in GitHub Desktop.
How to setup a GitHub page for an individual repository

#GitHub Pages Setup for an Indivual Repository

Create an orphan branch named gh-pages

git checkout --orphan gh-pages

Add and commit files

Be sure to be on branch gh-pages at this time. If you've strayed:

git checkout gh-pages

Make some stuff:

echo "ampersand ennbee'esspee;" > internets.html

Add/commit

git add .
git commit -m "  what is meaning?  "

Push to remote

git push -u origin gh-pages

ALL DONE!

🌊🐬🌊🐬🌊🐬🌊🐬🌊🐬🌊🐬🌊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment