A source control system (also known as a source control management system or an SCM system), provides a repository for source files and a high-level interface to the changes made to them over time. In general terms, a source control system stores every change made to a file since it became part of the system. Source control systems can be used by individuals, but they are generally used by teams of developers who work on the same projects. A source control system allows several developers to keep track of the changes the team has made to the files that it stores.
Source control systems provide a command-line interface through which you can perform all the source control operations they support. However, Xcode provides an easy-to-use interface for the most popular source control systems. Through Xcode, you can browse repositories, check out projects, and track changes made to source files.
This document provides an overview of source control and describes how to work on projects managed under source control through the Xcode user interface.
To get the most out of this document, you should be familiar with the Xcode user interface and the structure of Xcode projects.
Consult Xcode Workspace Guide first if you’re not familiar with the Xcode user interface.
This document contains the following chapters:
“Source Management Overview” provides a gentle introduction to source management in Xcode, which includes source control and snapshots.
“Source Control” describes how to connect to source control repositories and work with managed files and projects.
“Snapshots” shows how to use locally stored snapshots to manage changes to multiple files.
“Using Source Control and Snapshots” provides tips and caveats about using source control and snapshots on a project concurrently.
To learn more about source control systems, consult these books:
Version Control with Subversion (O’Reilly, 2004)
Essential CVS, 2nd Edition (O’Reilly, 2006)
Subversion Version Control: Using The Subversion Version Control System in Development Projects (Prentice Hall, 2005)
Last updated: 2009-10-19