My Rails .gitignore

config/database.yml
config/*.sphinx.conf
config/s3_credentials.yml
*~
*.cache
*.log
*.pid
tmp/**/*
.DS_Store
db/cstore/**
db/sphinx/**
doc/api
doc/app
doc/plugins
doc/*.dot
coverage/*
db/*.sqlite3
*.tmproj
*.sw?

To always ignore those files system-wide:

git config --global core.excludesfile /path/to/.gitignore
$1.99 domains with SSL purchase!

2 thoughts on “My Rails .gitignore

  1. when i create a new rails project with this command: rails new blog, this problem encountered:

    Could not find “gitignore” in any of your source paths. Your current source paths are:
    /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/generators/rails/app/templates

    what’s the problem?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">