remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 0b0a9ba87144d48633404cbb428def1b
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File huanxin/HXTest/Hyphenate.framework/Hyphenate is 229.33 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/qpc2015/HuanXinTestDome.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/qpc2015/HuanXinTestDome.git'
上传github发现不给上传100m以上文件的错误,按着提示进行了,用到一个叫lfs的工具专门用来上传大文件的!附git-lfs 1.安装 mac
brew install git-lfs
git lfs install
2.找出超过100m的文件
cd 目标项目path
find ./ -size +100M
2.大文件加入git large file storage上面
git lfs track "name_of_a_giant_file"
#example:
git lfs track ".//huanxin/HXTest/Hyphenate.framework/Hyphenate"
3.添加到git上
git add path_of_a_giant_file
#example:
git add .//huanxin/HXTest/Hyphenate.framework/Hyphenate