- Click the 'Fork' button (choose your account if prompted).
- If you haven't set up your SSH keys yet, follow the instructions helpful instructions
- Copy the SSH clone URL (don't use the default HTTPS URL)
- In your terminal, navigate (using
cd
) into a directory where you want to start keeping your repositories. - Clone your new repository by typing
git clone <forked clone URL>
(without carets "<>", ditto for future examples) - Add the base repository as an upstream
git remote add upstream git@github.com:AustinCodingAcademy/intermediate-workbook.git
- Make the change to the JS function indicated in
test/00LessonZeroTest.js
- When finished, commit your changes and push to GitHub
git status
git add test/00LessonZeroTest.js
git commit -m "Lesson Zero Tests passing!"
git push origin gh-pages
-
Now go to your forked repository on GitHub. A little yellow box should have popped up asking you to make a Pull Request. Click to review.
-
Click "Create Pull Request"
-
Everytime you make a change and push to GitHub, this PR will automatically update. No need to do it more than once.
- To get the latest test updates, be sure to have a "clean working directory" by committing or removing all of your changes. You check for a "clean working environment" by running
git status
and making sure no files show up. - Run
git pull upstream gh-pages
Tests are a great way to make sure you code works the way you planned it would, and to make sure you don't break something in the future. We will be using them to test our understanding of the lesson.
To run a single test on an app, test, or a kata, simply run npm test apps/01PigLatin.js
, etc.
Simply run npm test
in the project directory.