Skip to content

Instantly share code, notes, and snippets.

@jaredatron
Created May 26, 2009 17:49
Show Gist options
  • Select an option

  • Save jaredatron/118190 to your computer and use it in GitHub Desktop.

Select an option

Save jaredatron/118190 to your computer and use it in GitHub Desktop.
#!/bin/sh
git init
cat <<EOF > .gitignore
.DS_Store
log/*
log/*.log
tmp/[^.]*
db/*.sqlite3
coverage
doc/app/*
EOF
cat <<EOF > log/.gitignore
*.log
EOF
cat <<EOF > db/.gitignore
*.sqlite3
EOF
find . -type d -empty -exec touch {}/.gitignore \;
git add .
git commit -a -m "Initial import."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment