Xcode 10: Create Global Git Ignore File

January 7th, 2019

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

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.

Xcode10GitIgnoredFilesHighlighted

You most likely have an empty list of ignored files. Click the Add button to add files to ignore. Adding files to ignore from Xcode is a little tedious. You have to add one file at a time. But you only have to enter them once.

If you need to know what files to ignore, read the Generating a Git Ignore File section in the following article:

Telling Git to Ignore Files in Xcode Projects

Tags: ,


Leave a Reply

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