Visual Studio Code - Source Control > 10k changes

19.1k views Asked by At

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

3

There are 3 answers

0
M R Sharif Danish On BEST ANSWER

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.

0
Alex Klotz On

[%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

0
Mohammed ali On

I ran into this issue just recently. It solved itself once I initialized the project folder as a git repository with the git init.

If it was already initialized make sure you are in the correct project folder and if you are then display the hidden files and delete the .git folder.