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

Juan Rosello 21 Reputation points
2021-05-11T19:42:22.34+00:00

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:
https://ibb.co/cDh3ZVG
https://ibb.co/P1LPx7R
Many thanks in advance.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,601 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,595 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,899 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jay Pankhania 76 Reputation points
    2021-05-12T06:35:05.653+00:00

    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   
                                                                                  OR  
             - open the solution by open with VS Code or the Visual Studio and then it will work    
                                                                                  OR  
             -  Trying to Re-clone the repository.  
                                                                                  OR  
             - 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 15,036 Reputation points MVP
    2021-05-12T00:52:43.537+00:00
    0 comments No comments

  2. Tianyu Sun-MSFT 27,181 Reputation points Microsoft Vendor
    2021-05-12T05:38:39.037+00:00

    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: https://learn.microsoft.com/en-us/answers/products/.

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

    Best Regards,
    Tianyu

    • 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
    2021-05-13T18:39:46.42+00:00

    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