简体   繁体   English

在 Github 上上传文件 > 25 MB

[英]Upload file > 25 MB on Github

I have a file that I want to add to Github.我有一个要添加到 Github 的文件。 Its size is more than 25 MB limit of github.它的大小超过 github 的 25 MB 限制。 It is a csv file.它是一个 csv 文件。 How can I upload it on Github.如何将其上传到 Github。

Steps followed till now到现在为止的步骤

$ 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

This gives error这给出了错误

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.

Files that you add to a repository via a browser are limited to 25 MB per file.通过浏览器添加到存储库的文件限制为每个文件 25 MB。 You can add larger files, up to 100 MB each, via the command line.您可以通过命令行添加更大的文件,每个文件最多 100 MB。

Refer this page.请参阅页面。

If you need to upload greater file than 100 mb then Git LFS might be suitable for you.如果您需要上传大于 100 mb 的文件,那么Git LFS可能适合您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM