Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created February 7, 2012 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/1760096 to your computer and use it in GitHub Desktop.
Save silv3rm00n/1760096 to your computer and use it in GitHub Desktop.
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
git add .
git commit -a -m "First 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