上传文件>Github上25 MB [英] Upload file > 25 MB on Github

查看:91
本文介绍了上传文件>Github上25 MB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件要添加到Github.它的大小超过github的25 MB限制.这是一个csv文件.如何将其上传到Github.

I have a file that I want to add to Github. Its size is more than 25 MB limit of github. It is a csv file. How can I upload it on Github.

步骤到现在为止

$ cd path_of_directory
$ git lfs install
$ git lfs track "*.csv"
$ git add Filename.csv
$ git commit -m "Filename.csv"

到这里一切都很好.我收到以下成功消息:

Till here everything is fine. I get below success message:

$ git commit -m 'FileName.csv'
[master (root-commit) 3f089ff] FileName.csv
 1 file changed, 3 insertions(+)
 create mode 100644 Downloads/Folder_of_file/FileName.csv


$ git push origin master

这会导致错误

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

推荐答案

通过浏览器添加到存储库的文件限制为25 MB每个文件.您可以通过以下命令添加较大的文件,每个文件最大100 MB线.

Files that you add to a repository via a browser are limited to 25 MB per file. You can add larger files, up to 100 MB each, via the command line.

引用页面.

如果您需要上传大于100 mb的文件,则 Git LFS 可能适合您.

If you need to upload greater file than 100 mb then Git LFS might be suitable for you.

这篇关于上传文件>Github上25 MB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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