开发者

What to ignore in a Mercurial .hgignore for a Ruby on Rails app

I created a hello world app with rails HelloWorld command. I ended up with many directories:

Should all this be under sources control? What would be a good default .hgignore file for a Ruby on Rails app folder?


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

.DS_Store
.orig


  • log/*

  • tmp/*

  • your dev database under db

can be ignored to start with.


The general rule is that if you've typed it by hand it should be in source control. If there are some scaffolding files that you didn't type but that can't be easily generated by your build system and don't often change, add them too. Avoid adding files that can be generated from other added files and non-mergeable files that change often.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜