How to obliterate 10k+ untracked changes in VS Code

When this happens it usually means that Git is running in the wrong directory

How to obliterate 10k+ untracked changes in VS Code

Did you run into the following error message on your VS Code application: The git repository at '/Users/***/***' has too many active changes, only a subset of Git features will be enabled?

This is happening because Git has been initialized in a folder with lots of subfolders and as such, all changes in those child folders is reflecting in your Git record.

To fix this pay attention to the path at the top of all untracked changes— something like this ('/Users/***/***') follow this path to the last folder in there you will find a .git folder — this is usually hidden, to reveal hidden files in mac cmd+shift+ [.] (command plus shift plus period) then delete the .git file.

To use git next time make sure to initialize the git in the project folder — cd to the project folder then run the git init command

Now other ways to control the files git is tracking: just create a .gitignore file — it's just a regular text file, randomly drop in names of folders and files you don't want Git to track.

Also, note that running the remove untracked changes command you find online will permanently delete any of your computer's folders, don't go this route.