When creating a new project in XCode 6, if I check the "Source Control: Create Git repository on My Mac" button in the Save sheet, the project is successfully created, but I get an error dialog saying
The file "exclude" doesn't exist
Also, a git repo is initialized for that project, but no files are added to it.
Why is this happening, and how can I fix it?
(Seen on Yosemite, in several versions of XCode 6, including both the 6.0.x and 6.1.x series.)