March 10th, 2019
Xcode 10 has bug/limitation in creating Bitbucket repositories for your projects. If the name of the repository has uppercase letters, such as MyProject, an alert pops up when you create the repository with the helpful message An unknown error occurred. The workaround is to use all lowercase letters in the repository name, such as myproject.
January 7th, 2019
Xcode 10 lets you create a global .gitignore file so you don’t have to create a .gitignore file for each project you create. Go to Xcode’s Source Control Preferences and click the Git button in the preferences window. You most likely have an empty list of ignored files. Click the Add button to add files […]
December 9th, 2018
Xcode 10 removes support for Subversion. If you want to continue to use Subversion with Xcode, stick with Xcode 9. Alternatively, you can switch to git or use another tool for Subversion.
September 27th, 2018
If your Xcode project is under version control, Xcode’s editor highlights the changes you make to the code. When you add or change code, Xcode places a blue bar on the left edge of the editor. Clicking the blue bar opens a popover to discard the change. For some reason you can’t commit changes from […]
September 20th, 2018
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 […]
April 17th, 2018
I released my latest book, Version Control for iOS and Mac Developers. It’s a free download. Go to the book’s website to download it.
March 27th, 2018
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 […]
March 12th, 2018
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 […]
March 5th, 2018
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 […]
February 28th, 2018
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 […]