The Santa Barbara JavaScript website
- Fork this repository. (use the fork button)
git clone https://github.com/USERNAME/sbjs.org.git
clone the fork repository locally.cd sbjs.org
cd into the newly created project.git remote add upstream https://github.com/sbjs/sbjs.org.git
git remote set-url --push upstream no-pushing
Step 4 allows us to pull the latest code from the main sbjs repo when it gets updated. Step 5 prevents us from accidently pushing to upstream. You never want to do this, rather you should use a pull request to make changes.
Since we gave it the alias 'upstream', we can git pull upstream master
to get the latest code.
DO NOT PUSH to https://github.com/sbjs/sbjs.org.git - use a pull request.
Issuing a git remote -v
you should see:
origin https://github.com/USERNAME/sbjs.org (fetch)
origin https://github.com/USERNAME/sbjs.org (push)
upstream https://github.com/sbjs/sbjs.org.git (fetch)
upstream no-pushing (push)
One thing you will notice is that when you push, you are required to use unpw auth. If you want to use ssh for auth,
reset your origin like this:
git remote set-url origin [email protected]:joshball/sbjs.org.git
Now, issuing a git remove -v
you should see:
origin [email protected]:USERNAME/sbjs.org.git (fetch)
origin [email protected]:USERNAME/sbjs.org.git (push)
upstream https://github.com/sbjs/sbjs.org.git (fetch)
upstream no-pushing (push)
npm install
# adds local npm packagesnpm install -g bower
# installs bower package managerbower update
# updates all bower packagesnpm install -g grunt-cli
# installs the grunt command line interface.
You should now be able to run grunt server