username.github.com/repo-name
Instructions for setting up username.github.com/repo-name *
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
I did this : cd /path/to/repo-name
After I did git clean -fdx, all my files got deleted. I had to download them from github.
Was this (cd /path/to/repo-name) meant to be on a new directory ?