- Fork and clone
- Create a link to this repo:
git remote add upstream https://github.com/CoderAcademy-BRI/js-challenges
For each challenge (in your repo working directory):
- Make sure you on your master branch:
git checkout master
- Checkout the branch (in your fork)
git checkout -b <challenge_branch>
- 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"
- Checkout master branch and merge challenge branch:
git checkout master
git merge <challenge_branch>
- Complete the challenge
- Add and commit your changes
git add
git commit -m "<insert commit message>"
- Push to master in your fork:
git push origin master