Rails忽略GIT的文件 [英] Rails which files to ignore for GIT
本文介绍了Rails忽略GIT的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在本地创建了一个GIT回购协议。我现在看到一堆文件,我宁愿忽略GIT登记。这引出了我的问题:Rails是否有任何默认的.gitignore?任何最佳实践?
I created a GIT repo, locally. I now see a bunch of files i rather ignore for GIT check-in. This brings me to the question: is there any default .gitignore for Rails? Any best practices?
我当然会想到 tmp 和 log 。但是有没有其他文件或文件夹我应该考虑?
I think of tmp and log for sure. But are there any other files or folders i should consider?
推荐答案
Github的示例 .gitignore code>文件几乎适用于任何人类已知的项目。
Github has sample .gitignore
files for almost any kind of project known to humanity.
查看回购: https://github.com/github/gitignore
这篇关于Rails忽略GIT的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文