Rails: exclude anything from version control?
问题 When you place a Rails project under version control, do you exclude anything? Log files, for example? 回答1: DHH just posted on Twitter that there will be a default .gitignore in Rails 3, which includes: db/*.sqlite3 log/*.log tmp/**/* Which is usually what I exclude, some people also like to exclude the database.yml file if it's going on a public repo and you don't want to expose your database passwords. 回答2: In addition, to what Dan and Sohan suggest, I also ignore any native extensions for