gitvisual-studio-codebitbucket

VS Code - The git repository has too many active changes, only a subset of Git features will be enabled


I am setting up VS Code to work on an existing Salesforce project saved in BitBucket.

I cloned the repository down to my device and now when I open VS Code I get the message

The git repository at 'C:\Users[my repository directory]' has too many active changes, only a subset of Git features will be enabled.

When I go to Git in the left hand menu, it says I have 5000 staged changes and it appears to think those changes are that I deleted the files even though I can see them when I go to the file path myself.

Suggestions?

Visual Studio Code details:

Message & Git output


Solution

  • Check with git ls-files --eol (Git 2.8+) if this is an eol issue.

    If yes, then:


    That being said, other answers refer to a large number of untracked files, as in sivann's answer, so double-check your untracked files with:

    git status --untracked-files=all
    

    It will also show individual files in untracked directories, helping you assess the (possible large) number VSCode Git plugin has to consider.