remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: a703cdcc9fade51f2a131142249cb422
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File ARCore/Data/resources.assets.resS is 130.82 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File ARCore/Libraries/libiPhone-lib.a is 463.62 MB; this exceeds GitHub's file size limit of 100.00 MB
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/***.git'
**上面提到Git Large File Storage(https://git-lfs.github.com/).直接訪問有 github 開源的 LFS 大文件上傳方法就可以解決;
具體方式下面貼出來,也給自己備注下
$ cd 項目工程文件夾
$ git lfs install
$ git lfs track "*.psd"http://這里表示添加后綴為 psd 的文件,按照自己的項目替換相應(yīng)的文件
$ git add .gitattributes
//好了,上面三條命令已為我們成功添加了大文件 lfs倉庫; 下面是正常的git提交操作
$ git add .
$ git commit -m "添加.gitattributes文件"
$ git push origin master
備注:如果執(zhí)行生面方式有失敗的情況,可能是之前有提交過,清除下提交緩存
$ git rm -r --cached .
然后從新正常git提交操作