Git changes not showing in VS2013 Update 2

后端 未结 8 1081
旧巷少年郎
旧巷少年郎 2021-02-19 08:02

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

相关标签:
8条回答
  • 2021-02-19 08:47

    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!

    0 讨论(0)
  • 2021-02-19 08:50

    I came across this issue when adding a new but existing project to my solution in VS2015. The problem was that the new project used a local db file (an .sdf as well as an opendb) that got added to the root of the solution. When trying to stage uncommitted changes, it was failing because it couldn't access the opendb file while vs had a hold of it.

    I found this out by using git for windows and trying to stage my changes. Once I added the *opendb to my .gitignore and reopened Visual Studio, it found all my other changes.

    0 讨论(0)
提交回复
热议问题