I just started using VSCode and the git version control is showing all modified folders (on my desktop), not just those in my project. I would imagine this is a git root problem, but not sure how to fix it. Any suggestions?
2 Answers
One of the parent folders of your project is a git repo. You can find which one by running git rev-parse --show-toplevel. You probably want to delete the .git folder in the folder shown by this command. Before you do so, go to that directory and run git log to check if there is any history that you need to keep.
git rev-parse --show-toplevelcheck this one.