Xcode 9: Adding Your Project to GitHub

February 21st, 2018

Filed under: Version Control, Xcode | Be the first to comment!

Before Xcode 9, setting up your project to work on GitHub involved a lot of work. You had to login to GitHub, create a repository, go back to your Mac, launch the Terminal application, navigate to your project directory, and run multiple git commands.

Xcode 9 makes working with GitHub much easier. You can add your Xcode project to GitHub without leaving Xcode.

Start by going to the source control navigator by choosing View > Navigators > Show Source Control Navigator.

SourceCodeNavigatorAtStart

Select the Remotes folder, right-click, and choose Create Remote on GitHub. A sheet similar to the following will open:

CreateGitHubRemoteBlur

Unless you’ve already configured a GitHub account in Xcode, choose Add a GitHub Account from the Account menu.

GitHubLogin

Enter your GitHub account name and password. Click the Sign In button to use your GitHub account for this repository.

Choose public visibility unless you have a paid GitHub account. You must have a paid account to create private GitHub repositories.

Click the Create button to create the remote branch. Your Xcode project is now on GitHub.

Learn More About Version Control

Facebooktwittergoogle_plusredditmail

Tags: , ,


Leave a Reply

Your email address will not be published. Required fields are marked *