Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 349
dekenzbre Avatar asked Jun 07 '26 09:06

dekenzbre


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.

like image 129
M R Sharif Danish Avatar answered Jun 09 '26 00:06

M R Sharif Danish


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.

like image 28
Mohammed ali Avatar answered Jun 09 '26 00:06

Mohammed ali