Better Work flow for challenges - Git


I know this is beginners book and also perhaps the reason authors haven’t introduced it (yet! i am on chapter 11) but instead of copying the application for your challenges, you can use xcode’s git source control, you don’t have to learn command line or any advance stuff but little bit about commits and branches. You will have to learn it eventually :stuck_out_tongue:

Here is how I do it:

  1. Start the project with Git source control
  2. Write the chapter code in master branch
  3. Start new branch for each Bronze, Silver and Gold challenges
  4. Switch to master for new chapter

Hope this helps!



Hey that’s actually quite fancy.
I’m vaguely familiar with git but didn’t know how to use it. Would’ve been nice if the book had a small coverage of this somewhere near the end maybe.