Skip to content

Instantly share code, notes, and snippets.

@iggym
Last active December 21, 2015 16:59
Show Gist options
  • Save iggym/6337494 to your computer and use it in GitHub Desktop.
Save iggym/6337494 to your computer and use it in GitHub Desktop.
Creating a gitignore file for iOS projects
After creating a new Git repo for a project, the next thing is to add a .gitignore file.
You can copy/paste from a previous project, or use github/gitignore i.e copy https://github.com/iggym/gitignore/blob/master/Objective-C.gitignore
Alternatively you can also use gitignore.io by adding a function to your command-line environment that makes it easy to quickly grab the .gitignore file you need.
For example, for an iPhone project, after initializing my repo, I can just run the following command:
gi objective-c >> .gitignore
and a new ignore file will be created for me and is ready to use.
You can find full instructions on how to use gitignore.io and set it up for command-line use at http://gitignore.io/cli.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment