dekenzbre
dekenzbre

Reputation: 115

Visual Studio Code - Source Control > 10k changes

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

Upvotes: 8

Views: 25385

Answers (3)

Mohammed ali
Mohammed ali

Reputation: 21

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.

Upvotes: 2

Alex Klotz
Alex Klotz

Reputation: 11

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

Upvotes: 1

M R Sharif Danish
M R Sharif Danish

Reputation: 166

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.

Upvotes: 15

Related Questions