Skip to content
This repository has been archived by the owner on Sep 15, 2018. It is now read-only.

Tutorials: First Commit

AMitchemTW edited this page Sep 7, 2017 · 1 revision

Everyone on the team should complete this exercise as soon as they have access to the team repo. It should only take a few minutes.

Instructions

  1. Git pull to get the latest code git pull --rebaseask a trainer if you're not sure what --rebase does
  2. Add a new test to teamPage.test.js that checks for your name in the team page
  3. Run
    ./go pre-commit (OS X/Linux)
    npm run precommit (Windows)
  4. This will run the pre-commit checks - something should fail
  5. Fix the failing test by adding your name to the team page in TeamScreen.jsx
  6. Run the pre-commit checks again – everything should pass. ./go pre-commit
  7. Set your commit message to "[TASK][your_name/pairs_name] check-in dance initial commit" replacing your_name with, you guessed it, your name.
  8. Git pull to get the latest changes git pull --rebase
  9. ./go pre-commit
  10. Push your changes git push
  11. Repeat for the other person in your pair.