Skip to content

Instantly share code, notes, and snippets.

@marshluca
Forked from activestylus/template_git.rb
Created July 27, 2011 08:01
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 marshluca/1108895 to your computer and use it in GitHub Desktop.
Save marshluca/1108895 to your computer and use it in GitHub Desktop.
Rails 3 Template: Git Setup
#----------------------------------------------------------------------------
# Git Setup
#----------------------------------------------------------------------------
file '.gitignore', <<-FILE
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
public/uploads/*
gems/*
!gems/cache
!gems/bundler
FILE
git :init
git :submodule => "init"
git :add => '.'
git :commit => "-a -m 'Initial commit'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment