Skip to content

Instantly share code, notes, and snippets.

@lucianomarisi
Last active November 11, 2017 13:26
Show Gist options
  • Save lucianomarisi/b22a2d34a07dc8580cf26204033f4056 to your computer and use it in GitHub Desktop.
Save lucianomarisi/b22a2d34a07dc8580cf26204033f4056 to your computer and use it in GitHub Desktop.
Script for initializing a git repository with a gitignore for Xcode (can be added to the /usr/local/bin directory)
#!/bin/bash
# Script for initializing a git repository with a gitignore for Xcode
git init
echo -e "xcuserdata\n.DS_Store" > .gitignore
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