Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 955 Bytes

morning-challenges-instructions.md

File metadata and controls

27 lines (25 loc) · 955 Bytes

Instructions

Setup repo (only done once)

  1. Fork and clone
  2. Create a link to this repo:
    git remote add upstream https://github.com/CoderAcademy-BRI/ruby-challenges

Pull down morning challenge (daily)

For each challenge (in your repo working directory):

  1. Make sure you on your master branch:
    git checkout master
  2. Checkout the branch (in your fork)
    git checkout -b <challenge_branch>
  3. Pull down the challenge:
    git pull --no-edit upstream <challenge_branch>
  • This will cause a merge conflict after the first challenge. Fix it, then:
    git add .
    git commit -m "resolved conflict"
  1. Checkout master branch and merge challenge branch:
    git checkout master
    git merge <challenge_branch>
  2. Complete the challenge
  3. Add and commit your changes
    git add
    git commit -m "<insert commit message>"
  4. Push to master in your fork:
    git push origin master