GIT issue using Visual Studio on Windows? (5000 active changes)

Juan Rosello 21 Reputation points

I have this constant warning from GIT saying that I have 5000 active changes using Visual Studio Code, even when is a new file in an empty folder.
I don't know these files, is there any fix or there is a missing config?

Links to screenshots:
Many thanks in advance.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,174 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,407 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,877 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jay Pankhania 76 Reputation points

    You can solve the problem by the link which provided by @S.Sengupta .

    Or else there will be a chance that the Git inside the Visual Studio getting your new project as the old one . I got the same problems many times . So, i will tried the following steps for solving that problem.

             - tried to open the visual studio as "Run as administrator" and tried to open the solution   
             - open the solution by open with VS Code or the Visual Studio and then it will work    
             -  Trying to Re-clone the repository.  
             - Simply checking the manual folder which are not included in the project or which are hide inside the Git   
               you can say.  

    I hope this one is helpful for you.

    Even if none of the above is working then try to clean the project or tried to clean the git by diff. Git commands for the command line and try to re-clone the project directory.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. S.Sengupta 14,436 Reputation points MVP
    0 comments No comments

  2. Tianyu Sun-MSFT 24,896 Reputation points Microsoft Vendor

    Hi @Juan Rosello ,

    Welcome to Microsoft Q&A forum.

    Please check the thread(link) that @S.Sengupta provided.

    even when is a new file in an empty folder.

    Please check if there is a hidden .git folder in the folder which mentioned from the prompt information. If it exists, please try to rename it, and then restart VS Code. (Note: try this method when this happens in an empty folder or you don’t want to use Git)

    BTW, Visual Studio Code(different from Visual Studio) is currently not supported in the Microsoft Q&A forums, the supported products are listed over here:

    For VS Code related issues, you can post here: Stack Overflow tagged visual studio code.

    Best Regards,

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

  3. Juan Rosello 21 Reputation points

    Thanks to @Jay Pankhania and @S.Sengupta for your replying.
    I read the links, but I can not fix it with the commands they suggested, I got nothing in response in the GIT shell.

    @Tianyu Sun-MSFT Thanks to clarify this, I was not aware the difference between Visual Studio Code and Visual Studio.
    I will check Stackoverflow only for future questions.

    0 comments No comments