I am using Visual Studio 2017 (version 15.9.70 recently updated), and I am facing an issue where unstaged changes are disappearing after editing and saving any file. I can see the changes briefly in the "Unstaged Changes" section in the Git Changes panel, but as soon as I save the file, it shows zero changes, and the file is no longer listed in the unstaged changes.
I have tried:
- I made sure the file is saved and properly updated in the project directory.
- I verified that my project is connected to a Git repository and initialized correctly.
- I tried using Git Bash to check for unstaged changes with git status but did not see any changes.
- I’ve cleared Visual Studio’s cache and restarted it.
- I have again cloned the repository
- Updated the Visual Studio version from 15.9.70 to 15.9.70
- Uninstall and reinstall the visual studio 2017