my rails .gitignore 2
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?