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.


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


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


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.

Want to Learn More About Version Control?

I’m writing a book, Version Control for iOS and Mac Developers, that provides a gentle guide to using version control. Unlike other books, this book is geared towards iOS and Mac developers. Go to the book’s website to learn more about the book. If you would like more tips on using version control and a free excerpt from the book when it’s finished, sign up for the newsletter using the form below.

I want to learn more about version control


Tags: , ,

Leave a Reply

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