Visual Studio Code - Source Control > 10k changes

Viewed 4965

Im new to programming as well as Git. When opening a Git repository in Visual Studio Code that I created myself I've noticed my source control panel telling me that there is above 10k changes made, its in User/Gitfolder (MAC M1). Im the only one in this repository and haven't made any changes to it. What may be the problem?

When opening VSC I get a small warning window with the text "The git repository at '/Users/username' has too many active changes, only a subset of Git features will be enabled"

enter image description here

2 Answers

By some reasons git is tracking the files in your /user/username folder. In your file explorer enter in to '/Users/username' folder. From the view option in window ribon bar check 'hidden item' option. when all hidden items appears delete the .git folder.

[%WSL UBUNTU] Happened to me. I think when you opened your project in VS Code, you were in the root directory instead of a project folder further down your file system tree, so what you are seeing are the installations from your root folder being included in your VS Code workspace.

[If you need to rearrange your file system folders or create a projects folder, type 'explorer.exe .' in your linux terminal]

I would close VS Code instance, open your Linux Terminal and navigate to your projects folder: cd /home/'user name'/projects. Then type 'code .'

A new VS Code workspace will open in the right directory and the git will not include those root repositories

Related