Created
January 18, 2015 22:03
-
-
Save kareman/4f97459439804443cb87 to your computer and use it in GitHub Desktop.
Prepare an Xcode project for Git version control.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# create the ignore file | |
cat > .gitignore <<_EOF_ | |
# Xcode | |
# | |
.DS_Store | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 | |
!default.perspectivev3 | |
xcuserdata | |
*.xccheckout | |
*.moved-aside | |
DerivedData | |
*.hmap | |
*.ipa | |
# 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/ | |
_EOF_ | |
git init | |
git add . | |
git commit -m 'Initial commit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment