Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git changes not showing in VS2013 Update 2

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.

enter image description here

After saving file change disappears.

enter image description here

like image 961
Joel Cunningham Avatar asked Jul 16 '14 01:07

Joel Cunningham


3 Answers

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!

like image 154
Rui Bruno Mendes Avatar answered Oct 17 '22 17:10

Rui Bruno Mendes


I had the Roslyn preview extension installed. Disabling this extension fixes the issue.

like image 22
Joel Cunningham Avatar answered Oct 17 '22 18:10

Joel Cunningham


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.

like image 1
xelandreb Avatar answered Oct 17 '22 18:10

xelandreb