Xcode 10: Improved Bitbucket and GitLab support

September 20th, 2018

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

Xcode 10 improves version control support for Bitbucket and GitLab. You can add your Bitbucket and GitLab accounts to Xcode from Xcode’s Accounts preferences. Click the Add button to add an account. A sheet opens. Choose Bitbucket Cloud to add your Bitbucket account. Choose GitLab.com to add your GitLab account. Starting in Xcode 10 you […]


Git Detached Head

March 27th, 2018

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

I’ve recently seen multiple questions online from people having problems committing to git because the git repository had a detached head. This article answers the most common questions about detached heads. What Is a Detached Head? A detached head in a git repository occurs when the repository has no current branch. Why Is a Detached […]


Going Back to a Previous Git Commit in Xcode

March 12th, 2018

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

Something that can happen to you when using version control is you commit a change to the version control repository, realize you made a mistake, and want to go back to an earlier commit. How do you do this in Xcode? Xcode provides no direct way to go back to an earlier commit. What you […]


Ignoring Files That Are Already in a Git Repository

March 5th, 2018

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

In a previous post, I showed how to tell git to ignore files in Xcode projects. But what do you do if you want to ignore a file that git is currently tracking? Remove the file from the git repository. Add the file you want to ignore to the git ignore file. If you don’t […]


Telling Git to Ignore Files in Xcode Projects

February 28th, 2018

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

When you create a project in Xcode and create a git repository, git initially tracks every file in the project, but this behavior isn’t what you want. Xcode projects contain a lot of files. Some of these files shouldn’t be tracked by git because they change every time you build your project. Having files you […]