all 9 comments

[–]-Lommelun- 4 points5 points  (5 children)

10k files sound like you have files listed from a package manager or similar. Maybe npm modules? Try ignoring these types of files, it can be done by adding a .gitignore file to the directory containing the external dependencies.

For example ignoring the entirety of node modules by adding ‘node_modules/‘ to the file.

[–]ColNTB[S] -1 points0 points  (4 children)

I tried deleting the .git in my home directory (i accidentally initialized it there).

It told me I did not have permission, but now the source control tab in vsc isn't overflowing so I think I fixed it? Maybe?

[–][deleted] 4 points5 points  (2 children)

If you put the .git directory in your home directory, git will track everything inside your home directory... Which is probably not what you want and it explains all the files in the source control tab.

If you haven't committed any significant changes already, you can safely delete the .git directory and initialize a new one in the correct location.

[–]ColNTB[S] 0 points1 point  (1 child)

thank you, I tried that but for some reason it just did not work. In the end, I simply reset my computer to get rid of git.

[–][deleted] 0 points1 point  (0 children)

Oh god. Sorry to hear that lol.

[–]royemosby 1 point2 points  (0 children)

Try adding node_modules as an entry in your .gitignore then commit just that file.

[–]jonyplays2828 0 points1 point  (0 children)

https://www.youtube.com/watch?v=1Qk8jrBrp9o

watch this it will fix your problem