How to fix the error of visual studio code

this visual studio code has inexplicably linked more than 5,000 files after I built a project inexplicably, which may be related to GitHub.

  • excuse me, how did this happen?
  • how can I fix it? every time I open it, I feel so unhappy
  • Thank you!
< hr >

I have also encountered that you have git init the root directory you opened, and delete the git hidden files in the root directory


maybe you didn't give node_modules to ignore.?
write the node front-end project .gitignore there must be a line like this:

node_modules

I hope it will be helpful to you


guess that your project does not have a .gitignore file yet, which causes all node_modules files to be hosted by git.

The easiest way to do this is to create a new file called .gitignore in the root directory of your project, with a dot in front of it. Then copy the contents of here into it.

it is recommended that you install a plug-in for vscode to easily manage .gitignore files. It's called gitignore . Restart vscode, after the installation is complete, then press F1, select add gitignore, and then enter visual stuido code. Follow the prompts to generate a .gitignore file.


delete the .git folder of the root directory directly, that is, delete the erroneous local git repository

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9b5e5-2f26a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9b5e5-2f26a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?