Reputation: 115
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"
Upvotes: 8
Views: 25385
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
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
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