git lfs not working - still throwing error - remote: error: GH001: Large files detected
git lfs not working - still throwing error - remote: error: GH001: Large files detected
所以我在我的 rails 项目中使用了 node,并且 github 不会推送这个文件,因为它超过了 100MB:
node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome
我做到了
git lfs install
git lfs track "/node_modules/*"
git add .gitattributes
git add .
git commit -am "commit after lfs"
git push
但它仍然抛出相同的错误:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: d06553d5a0051916cd0d22b28f55bb105cb07d442b1a6f6133e51e888e22b221
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome is 274.64 MB; this exceeds GitHub's file size limit of 100.00 MB
我还使用 git lfs ls-files 检查过,我看到了那个文件
我在这里做错了什么?
您需要先 git lfs push
推送所有 LFS 文件。
为了解决这个问题,我必须先撤消之前的提交:
git reset --soft HEAD~1
所以我在我的 rails 项目中使用了 node,并且 github 不会推送这个文件,因为它超过了 100MB:
node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome
我做到了
git lfs install
git lfs track "/node_modules/*"
git add .gitattributes
git add .
git commit -am "commit after lfs"
git push
但它仍然抛出相同的错误:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: d06553d5a0051916cd0d22b28f55bb105cb07d442b1a6f6133e51e888e22b221
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome is 274.64 MB; this exceeds GitHub's file size limit of 100.00 MB
我还使用 git lfs ls-files 检查过,我看到了那个文件 我在这里做错了什么?
您需要先 git lfs push
推送所有 LFS 文件。
为了解决这个问题,我必须先撤消之前的提交:
git reset --soft HEAD~1