Skip to main content

Xcode 4: git Support

·1 min

One of Xcode 4’s new features is support for the git version control system. Xcode 4 can create a local git repository for you when you create a project.

Xcode 4 Create git Repository

Select the Create local git repository for this project checkbox to create the repository. If you have an existing Xcode project you want to place under version control, launch the Terminal application. Navigate to the folder where your Xcode project resides and run the git init command.

After creating the repository, you must add the project files to the repository. You can do this from the Terminal by running the git add and git commit commands, or you can use a git GUI like GitX.