Chapter 7. Version Control

In This Chapter

• What version control is

• Creating your own repositories

• Using existing repositories

• Examining your code’s history

Branching

There isn’t much to the passer-rating project—about 120 lines of source, plus the contents of the project file—but you have already invested a lot of time and trouble in it. So far, you’ve simply created some source code, but soon you will be moving on from creation to change. If you’re like most programmers, you are conservative of the code you’ve written. An old function may no longer be required, but it may still embody a valuable understanding of the underlying problem.

One solution might be simply to keep all the obsolete code in your active source files, possibly ...

Get Xcode® 4 Unleashed, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.