Skip to content

Git Erro: this exceeds GitHub's file size limit of 100.00 MB

Shuang edited this page Apr 22, 2017 · 1 revision

教程

Error

remote: error: File stanford-corenlp-full-2016-10-31/stanford-corenlp-3.7.0-models.jar is 345.36 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/Shuang0420/QuestionAnsweringSystem-DocBot-.git
 ! [remote rejected] master -> master (pre-receive hook declined)

Solution

Use git-lfs to upload large files.

Install

Homebrew:

brew install git-lfs

MacPorts:

port install git-lfs

Setup

git lfs install

Usage

$ git lfs track "*.jar"
Tracking "*.jar"
$ git add .gitattributes
$ git add stanford-corenlp-full-2016-10-31/
$ git commit -m'add stanford corenlp server'
[master 476cae4] add stanford corenlp server
 50 files changed, 4468 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 stanford-corenlp-full-2016-10-31/.DS_Store
 create mode 100755 stanford-corenlp-full-2016-10-31/CoreNLP-to-HTML.xsl
......
$ git push origin master
Locking support detected on remote "origin". Consider enabling it with:
  $ git config 'lfs.https://github.com/Shuang0420/QuestionAnsweringSystem-DocBot-.git/info/lfs.locksverify' true
Git LFS: (0 of 0 files, 16 skipped) 0 B / 0 B, 370.68 MB skipped                                                                                                                Counting objects: 55, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (48/48), done.
Writing objects: 100% (55/55), 1.33 MiB | 0 bytes/s, done.
Total 55 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/Shuang0420/QuestionAnsweringSystem-DocBot-.git
   7444f43..476cae4  master -> master

[[TOC]]

Clone this wiki locally