Skip to content

Instantly share code, notes, and snippets.

@djch
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djch/b68258ffb8444e608510 to your computer and use it in GitHub Desktop.
Save djch/b68258ffb8444e608510 to your computer and use it in GitHub Desktop.
A .gitignore spec for Getbusi's Objective-C projects
# Numerous always-ignore extensions
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
*.zip
*~
# OS or Editor folders
._*
.cache
.DS_Store
.idea
.project
.settings
.tmproj
*.esproj
*.sublime-project
*.sublime-workspace
nbproject
Thumbs.db
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/
@djch
Copy link
Author

djch commented Nov 14, 2014

Once you've committed this you can clean out all the files which should be ignored with:

git clean -fdX --dry-run  # preview the damage
git clean -fdX  # delete them for real

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment