鍍金池/ 問答/Linux/ git-lfs無法push 大文件 ?

git-lfs無法push 大文件 ?

cd  /tmp/back
ls -al 
total 145636
drwxr-xr-x  2 xxx xxx      4096 Jan 17 11:04 .
drwxrwxrwt 18 root    root         4096 Jan 17 10:44 ..
-rw-r--r--  1 root    root           45 Jan 16 18:40 imitation.tar.gz
-rw-r--r--  1 root    root    146996064 Jan 16 18:40 wp.bak.tar.gz
-rw-r--r--  1 xxx     xxx  2114053 Jan 16 18:40 wp.sql.bak.tar.gz

wp.bak.tar.gz 是一個(gè) 140M 的大文件

我現(xiàn)在想把整個(gè)/tmp/back 文件夾中的文件全部,push到我的github.

1.install lfs
curl -s https://packagecloud.io/insta... | sudo bash
sudo apt-get install git-lfs
git lfs install

2.push /tmp/back 中的所有文件

cd  /tmp/back
git init
git lfs track ./wp.bak.tar.gz
git add .gitattributes
git add *
git commit -m "Add large file"
git remote add origin  https://github.com/xxxx/yyyy.git
git push origin master

出現(xiàn)下面的錯(cuò)誤
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 751fb70b058bd398791f7a04ba313ea5
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File wp.bak.tar.gz is 140.19 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/xxxx/yyyy.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/xxxx/yyyy.git'

請(qǐng)問,如何處理?

回答
編輯回答
晚風(fēng)眠

push上去了嗎?

2018年6月3日 14:42