Retired Document
Important: The repositories organizer does not appear in Xcode 5. In Xcode 5, source control management tasks are performed in the Source Control menu and the Accounts preferences.
Setting Up a Git Repository
Use command-line commands to set up a Git repository for an existing project.
![bullet](../../../Resources/1282/Images/task_2x.png)
Use the
cd
command to switch to your project directory, making it the current working directory.Enter
git init
to create an empty repository.Enter
git add .
to copy your project files into the repository.Enter
git commit -m "Initial commit"
to commit all the files.
|
To set up a repository for an existing project, you have to use the command-line shell implemented by the Terminal utility app.
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-09-18