The Git integration in Xcode 4 is very welcome however it seems to be a bit flaky when it comes to dealing with remote repositories. For clarity I\'m using OS X version 10.6
Xcode 6.2 (and possibly 6.x) changed things around. There no longer is a Repositories tab in the Organizer. Here's how to do it with the newer Xcodes.
To add a project with a local git repository to GitHub, this is what you do:
Done.
I've done this successfully using an ssh connection (which looks like git@github.com:<username>/<project>.git
). It authenticates the user based on an SSH public key, which you can generate on the command line--lots of docs about that at github in the "help" section.
I think I found the Xcode way to push a existing project to GitHub or any other remote repository!
Open the Organizer in Xcode an go to the Repositories tab
At first click on Remotes and then on "Add Remote"
Enter a Remote Name and the Location of your remote repository and click on create
Then select your project and open File -> Source Control -> Push ...
Select your remote repository and wait until it is connectable! Look for the Create in the brackets.
Now your old project is published to GitHub
I hope it will works for you also! In my case it works with every remote git repository.
Please contact me on twitter if something unclear or wrote in bad English!