如何使用GitHub管理大型数据文件? [英] How to manage large data files with GitHub?

查看:103
本文介绍了如何使用GitHub管理大型数据文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在有一个120 MB的大型文本数据文件.

I have one (for now) large text data file of 120 MB.

将其放入回购协议中是一种不好的做法吗?它会影响GitHub上的搜索功能吗?

Is it a poor practice to put it in the repo? Does it affect search functionality on GitHub?

这似乎是一个坏主意,因为整个源代码只有900行.

It seems like it is a bad idea because the entire source code is only 900 lines.

不打算更新文件.

可以将其放在Dropbox或Google Docs上,然后将其与存储库分开.

Could put it on Dropbox or Google Docs, but then it is separate from the repo.

如果不是GitHub,是否有更好的方法来管理/备份大数据文件?

If not GitHub, is there a better way of managing/backing up large data files?

推荐答案

如果满足以下条件,则将其放入存储库中:
1-您要跟踪更改
2-它实际上是项目的一部分,并且您希望人们在克隆存储库时收到它

Put it in the repo if:
1- you want to keep track of the changes
2- it is actually a part of the project and you want people to receive it when they clone the repo

如果满足以下条件,请不要将其放入存储库中(使用.gitignore排除它):
1-它经常更改,但是更改没有意义,并且您不想保留历史记录
2-它在线可用,或者您可以使其在线可用,并在存储库中放置链接或其他内容,以使人们知道在哪里可以找到它

Don't put it in the repo (use .gitignore to exclude it) if:
1- it changes often but the changes are not meaningful and you don't want to keep the history
2- it is available online or you can make it available online and put a link or something in the repo for people to know where to find it

如果您没有很多人下载它,Dropbox会很好,Amazon S3是托管它的最佳选择.

Dropbox is good if you don't have lots of people downloading it, Amazon S3 is your best bet for hosting it.

这篇关于如何使用GitHub管理大型数据文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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