I'm trying to push my local git project into github remote repo. I added node_modules into one commit I made but this exceeds GitHub's file size limit of 100.00 MB when I try
git push -u origin main
then
remote: error: Trace: d8e81b49d1b7e109e7b4585cf6b84d574b3888e15cb1b4f858c87c5a0147bc57
remote: error: File node_modules/node-sass/build/Release/libsass.lib is 160.60 MB; this exceeds GitHub's file size limit of 100.00 MB
Then I added .gitignore but that doesn't work because the commit was already made
I tried to remove that node_modules from being tracked and commited using
git rm -r cached node_modules
but it keeps trying to push that when I do git push.
I don't know how to remove node_modules from being pushed