Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Prepare an Xcode project for Git version control.
#!/bin/bash -x
# create the ignore file
cat > .gitignore <<_EOF_
# Xcode
# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# Pods/
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