my rails .gitignore 2

Posted by kain Thu, 24 Jul 2008 18:28:00 GMT

config/database.yml
*~
*.cache
*.log
*.pid
tmp/**/*
.DS\_Store
db/cstore/**
doc/api
doc/app
doc/plugins
coverage/*
db/*.sqlite3
*.tmproj
Capfile

usually I leave a config/database.yml.example, you can extend this list also to ignore the schema.rb.

edge rails should be able to recreate missing directory, because as you know git won’t follow empty directories, if that’s the case, just touch a .gitignore in tmp and log directories.

extra trick: to always ignore those files globally:

git config --global core.excludesfile /path/to/.gitignore

update:

suggested by schram:

doc/*.dot

to ignore railroad files

also for somebody is useful to have the sqlite production database versioned, so remove db/*.sqlite3.

another update:

ignored vim swap files

*.sw?
Trackbacks

Use the following link to trackback from your own site:
http://www.icoretech.org/trackbacks?article_id=my-rails-gitignore&day=24&month=07&year=2008

Comments

Leave a comment

  1. Avatar
    anonymous_writer 1 day later:
    kain u r the best but is better the italian than the fuck** english xD
  2. Avatar
    kain 3 days later:
    english is fun, and you can reach a much large audience :D anyway stay tuned, multilingual icoretech is coming :)
Comments