Reputation: 8654
I'm aware of how to create one and there are lots of posts of what should be in them for an Xcode project. This is a more basic question.
Assume that I'm just working locally, I haven't created any remotes.
Upvotes: 4
Views: 5721
Reputation: 8654
I'm pretty sure that Xcode does not create a gitignore file on its own. So this is how I start a new project now.
git init
curl https://www.gitignore.io/api/xcode > .gitignore
There are lots of places to get gitignore files but this is super handy as shown on NSScreencast episode 156.git add .
Be sure to include the dot, that adds everything.git commit -m “Initial commit."
Source Control
menu. If you select History
you should see the initial commit.Update:
www.gitignore.io
now redirects to www.toptal.com/developers/gitignore
It's nice. You can specify keywords like xcode, cocoapods, etc.
Upvotes: 19