- You need to install git and setup a new Github repository as described here.
- Open Xcode.
- Create a new project under Xcode and try to keep it of the same name as the Github repository. It saves you from hassle
- Select "Create local git repository for this project". (It is usually selected by default)

- Go back to the newly created git repository and follow directions to setup an existing repo. It should resemble the image below:

- Keep in mind, the "existing_git_repo" directory is your current project directory created by Xcode.
- Now your all set and you can commit your changes to Github through Xcode either by right-clicking on the project and selecting commit or by going to File->Source Control -> Commit (alt+command+c).
- Once your ready to push changes, goto File->Source Control -> Push and you should be able to see your commit on Github.
Thursday, January 19, 2012
Setup Xcode 4 with a new Github repository
Labels:
Git,
Github,
Repo,
Repository,
Setup,
Source Control,
Xcode4
Subscribe to:
Posts (Atom)