Getting started with Xcode
Create a new repository
Give it a name
Copy the clone URL
Create a new Xcode project
Go to the Source Control navigator and click the gear button at the bottom left corner
Select Add Existing Remote…
Paste the URL in the Location field and press Add.
Go to the Source Control > Push… menu item and then press Push.