I am using Git in VS2013 and my changed files are not showing up in the Changes window of VS.
When I have changed a file but before I have saved it to disk it does show up. But as soon as I save the file to disk the change disappears from the Changes window.
I tried uninstalling and reinstalling VS2013 but it did not help. Any ideas on how to keep the changes in the window once they are saved?
I have been using Git on the command line to work around this issue so that git client is able to detect that there are changes.
Before save.
After saving file change disappears.
I had this problem too. It happened randomly, and sooner or later my git status was completely erased from Microsoft Git Provider add-in in Visual Studio, although it was correct on Git bash.
Turns out that, in my case, it would happen as soon as I open a connection to a LocalDb database from SQL Management Studio, and kept the connection open. So, I suspect this might happens whenever a process locks out a file which is monitored by Microsoft Git Provider.
Hope it helps. In my case, it's fixed!
I had the Roslyn preview extension installed. Disabling this extension fixes the issue.
even if it's quite old question, I've got a similar problem last week on VS2013 and none of previews workarounds are efficents for me. While editing a file, it's appear on Team Explorer list of modify files but, as soon as they are saved, they disaperead from any lists. Other tools (git bash, tortoise, ...) saw them as modify and uncommit but not VS. I solutionne this problem in the parameter of Git in Team Explorer by generating the .gitIgnore file of the solution ! I hope this could help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With