Created
December 17, 2008 08:52
-
-
Save newtonapple/37001 to your computer and use it in GitHub Desktop.
Instruction for setting a github page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions for setting up username.github.com * | |
Create a repo named username.github.com | |
Push a `master` branch to GitHub and enjoy! | |
Instructions for setting up username.github.com/repo-name * | |
Caution: make your working directory clean before you do this (either stash or commit), otherwise this will lose any changes you've made to your project since the last commit. | |
cd /path/to/repo-name | |
git symbolic-ref HEAD refs/heads/gh-pages | |
rm .git/index | |
git clean -fx | |
echo "My GitHub Page" > index.html | |
git add . | |
git commit -a -m "First pages commit" | |
git push origin gh-pages | |
* It make take up to 10 minutes to activate GitHub Pages for your account |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment