Reputation: 2810
I've read and finish the tutorial of Git Source Control with Xcode in iOS 7 by Rey Wenderlich.
I know how to use source control on XCode 5. However, I don't know how to setup the repository so that my other MAC unit can access and use it. I'm searching all over google and none I can't seem to find anything that helps me.
Do you have any good tutorials out there for basic repository setup in XCode 5?
Upvotes: 1
Views: 1933
Reputation: 14237
After you setted up your repository on XCode you need to push it to a server.
You can use BitBucket for that. Create an account on BitBucket then create a repository there.
For the sake of simplicity, after you create your repository you need to build your https link for your repository. Usually it is in the form :
https://[email protected]/YOUR_USERNAME/YOUR_REPOSITORY.git
YOUR_REPOSITORY
can be checked in the link at the top after you create your repository. Usually that link is in the form https://bitbucket.org/YOUR_USERNAME/YOUR_REPOSITORY
.
Then go to your XCode and go to the Source Control and under "Working Copies" select your project then press configure.
After that add your bitbucket repository pressing "Remotes" and then pressing the "+" button and clicking "Add Remote".
The address in the following box is the one : https://[email protected]/YOUR_USERNAME/YOUR_REPOSITORY.git
.
Then do Source Control > Push.
On your other mac go again to the working copies > configure your_project. Add the BitBucket in the remote section and then do Source Control > Pull.
Upvotes: 3