2015-05-20 31 views
0

我创建了一个节点项目,MongoDB的,但是当我试图把它推到github上,git的控制台说,MongoDB的文件超过Github上推荐大小

remote: warning: GH001: Large files detected. 
remote: warning: See http://git.io/iEPt8g for more information. 
remote: warning: File Server/data/local.0 is 64.00 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB 
remote: warning: File Server/data/project.0 is 64.00 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB 

难道我不应该推.0文件复制到我的git回购? /data /文件夹中的所有文件都是mongo创建的。

+0

有什么特别的原因,希望把这些文件在您的回购? – royhowie

+0

嗯,我想同步我的数据库,以便其他合作者可以访问它 – rasen58

+0

也许可以考虑使用像在线模拟服务一样的模拟.io。我把它们用于我的项目,我还没有失望(他们也有一个免费的计划)。 – royhowie

回答

0

对于超过50MB的文件,您将得到这些警告。 超过100MB的文件将被拒绝,如果试图将其上传到github。

来源:https://help.github.com/articles/working-with-large-files/

+0

要直接回答您的问题:.0扩展名与您看到这些警告的原因无关; filesize是这里唯一的因素。 –

+0

没错,但是我刚刚创建了数据库,但是表中只有4行,所以如果它已经非常大,它会不断增加我添加的每一个新行,或者mongo是否为数据库预分配一个大文件? – rasen58

+1

@ rasen58 [是的,确实](http://docs.mongodb.org/manual/faq/storage/#faq-disk-size),并且还有日志记录本身很大的数据。 – laggingreflex