So I used node in my rails projects and there is this file that github won't push as it exceeds 100MB:
node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome
I did
git lfs install
git lfs track "/node_modules/*"
git add .gitattributes
git add .
git commit -am "commit after lfs"
git push
But it still throws the same error:
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
I also checked using git lfs ls-files and I see that file What am I doing wrong here?
To solve this issue I had to first undo the previous commit:
git reset --soft HEAD~1