Rails:从版本控制中排除任何内容? [英] Rails: exclude anything from version control?

查看:36
本文介绍了Rails:从版本控制中排除任何内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您将 Rails 项目置于版本控制之下时,您是否排除了任何内容?例如日志文件?

When you place a Rails project under version control, do you exclude anything? Log files, for example?

推荐答案

DHH 刚刚在 Twitter 上发布 Rails 3 中将有一个默认 .gitignore,其中包括:

DHH just posted on Twitter that there will be a default .gitignore in Rails 3, which includes:

db/*.sqlite3
log/*.log
tmp/**/*

这通常是我排除的内容,有些人还喜欢排除 database.yml 文件,如果它在公共存储库中并且您不想暴露您的数据库密码.

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.

这篇关于Rails:从版本控制中排除任何内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆