Your gitignore file must have the following name:.gitignoreYou can't call it default.gitignore and have git recognize it as a gitignore file.You don't tell Xcode where to look for your .gitignore file. You place the .gitignore file in your git repository, normally at the root of the repository, inside the .git folder.Keep in mind the Finder hides files and folders that begin with a period so you may have a difficult time finding your .gitignore file and your git repository in the Finder. I normally use BBEdit to write and save .gitignore files because it can show hidden files and directories in the Open and Save dialogs. I don't know if TextWrangler has the same capability. There are also utilities and Terminal commands to temporarily show hidden files and directories. An Internet search for os x show hidden files reveals many articles showing the Terminal commands to use.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: