When setting up the project for the first time, you'll need to:
cd
into the project directory.git init
to make it a git repository.git add -A
and then git commit -m "Initial commit"
.We need to have a gh-pages
branch on GitHub. GitHub will automatically make whatever commits are on that branch accessible at [yourusername].github.io/[yourreponame].
In order to create that branch for the first time:
git checkout -b gh-pages
.git push -u origin gh-pages
.master
branch again before making additional changes, with git checkout master
.Every subsequent time you want to publish new changes (after committing them!), these steps become:
git checkout gh-pages
git push
git checkout master
If you haven't yet installed reload globally, run `npm install -g reload'.
After that, any time you want to work on your project, run reload -b
from the project directory, perhaps in a second tab so you can continue to use git. (If it doesn't work, it could be a port conflict, so you might try specifying a different port like this: reload -b -p 4567
.)