我有一个文件要添加到 Github。它的大小超过了 github 的 25 MB 限制。它是一个 csv 文件。我如何将其上传到 Github。
到现在为止的步骤
$ cd path_of_directory
$ git lfs install
$ git lfs track "*.csv"
$ git add Filename.csv
$ git commit -m "Filename.csv"
到这里一切都很好。我收到以下成功消息:
$ 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.
最佳答案
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.
引用 this页。
如果您需要上传大于 100 mb 的文件,则 Git LFS 可能适合你。
关于git - 在 Github 上上传大于 25 MB 的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61040990/