My .gitignore getting ignored when I try to perform git push

You can see my file structure of my React project and its .gitignore file in the attached pictures.

I initiated an empty local repository, then I cloned an existing online repository into it.

You can see I have my 'node_modules' listed inside of the .gitignore, which I believe is added by React automatically.

I've just now replaced some larger image files with smaller ones and attempted to push that, but I'm running into issues.


You can see, in the third attmt pic, when I go to push, it's picking out 2 files from my
node_modules
folder and giving me a warning on one and an error on the other, both related to their sizes.

What is causing this? This is my first attempt at pushing to this repository, and all I've done so far is clone the repository that was online, using its GH address, into my local repository, that's all.
Screenshot_2023-11-13_at_3.03.26_PM.png
Screenshot_2023-11-13_at_3.03.54_PM.png
Screenshot_2023-11-13_at_3.12.28_PM.png
Was this page helpful?