开发者

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

开发者 https://www.devze.com 2022-12-30 10:09 出处:网络
I created a hello world app with rails HelloWorld command. I ended up with many directories: app 开发者_Go百科config

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

精彩评论

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