-1

I started having this problem when I connected my React Javascript project to MongoDB. This is what my Github Desktop has looked like ever since then.

link to screenshot

I tried searching the error message, and the search results told me to add the node_modules folder to my .gitignore. So I looked at my .gitignore and saw that node_modules was already there. I tried restarting my computer, uninstalling and reinstalling Github Desktop, making sure my .gitignore was saved in ANSI encoding, and going into WSL and entering git rm -r --cached . and git add .. My .gitignore still does not work. Is there anything else that might help?

Majid Hajibaba
  • 3,105
  • 6
  • 23
  • 55
sumwun
  • 13
  • 5
  • Changing your `.gitignore` might help, to `**/node_modules` see this - https://github.com/desktop/desktop/issues/8251 – Craicerjack Aug 05 '21 at 18:05

1 Answers1

0

Turns out the problem is that I accidentally saved the .gitignore file in the wrong folder.

sumwun
  • 13
  • 5