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).
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
.
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 |