title: gitignore template for Xcode, IntelliJ Idea and Phonegap (aka Cordova)
body: <p>Does anyone have a good pre-rolled gitignore file for iPhone development using Xcode and PhoneGap?</p>
  
  <p>Currently I'm using:</p>
  
  <pre><code>.idea
  .DS_Store
  *.swp
  *~.nib
  
  build/
  adhoc/
  
  .xcodeproj/ !*.xcodeproj/project.pbxproj
  
  *.mode1v3
  *.mode2v3
  
  build/
  
  xcuserdata
  </code></pre>
  
  <p>But I'm not sure this is ideal. For example, updating Phonegap kinda messes up a lot of things. Also, if another developer just builds the project using Xcode, then git will pick up some changes.</p>
  
  <p>Oddly enough, Xcode does not feature on this list: <a href="https://github.com/github/gitignore" rel="noreferrer">https://github.com/github/gitignore</a></p>