Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weaverryan/0f8f0ff2fcc173b245e4 to your computer and use it in GitHub Desktop.
Save weaverryan/0f8f0ff2fcc173b245e4 to your computer and use it in GitHub Desktop.
SummerCamp OO - Don't get stuck!

Are you stuck and not ready for the next step?

http://nooooooooooooooo.com

Actually, no problem! You can just skip up to the starting point of whatever we're working on right now.

For example, if you get stuck on "Register the PDO service", you can just move to the step03-register-pdo-service branch and keep coding along with us on the next step (all explained below).

How to switch to a step?

First, find out which step you want to switch to. Then, run the following command, replacingstep03-register-pdo-service with the name of the branch from below. NOTE: this will delete any work you've done and move you to our version of the fresh branch.

The first command removes all your work and the second command actually switches you to the new starting point.

git clean -fd && git reset HEAD . && git checkout .
git checkout -b working origin/step03-register-pdo-service

The word working can actually be anything. If you already have a working branch, just change this to anything else, like i-luv-bananas.

Which step to switch to?

Object Oriented Workshop

If we're starting this step Switch to this branch
Step 2: Extracting PDO step02-extracting-pdo
Step 3: Register the PDO service step03-register-pdo-service
Step 4: Call setAttribute on PDO step04-pdo-setattribute
Step 5: ShipLoader Service step05-shiploader-service
Step 6: Create JediShip step06-jedi-ship
Step 7: AbstractShip step07-abstract-ship
Step 8: Concrete Methods step08-concrete-methods
Step 9: Create a Deathstar class step09-create-deathstar
Step 10: Interface step10-interface
Step 11: CacheableShipLoader step11-cacheable-ship-loader
Step 12: ShipLoaderInterface step12-ship-loader-interface
Step 13: Alias Fun step13-alias-fun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment