Visual Studio: Git Team Explorer does not show any changes

前端 未结 9 1530
野趣味
野趣味 2021-02-05 05:44

When I first add a project to source control(GIT) it will show all of the files and everything will be peachy. I can continue to work for about 30mins-1hr and all of the change

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 06:30

    I found VS was holding an .opendb file open, causing a permissions clash when searching for changes. It reported the precise file that was causing the trouble in the Output window, under "Source Control - Git". Adding this to my .gitignore fixed the issue. If a VS restart or a reboot fixes the issue then you're probably closing the offending file handle -- in my case VS opened the problem file every time.

    See also Visual Studio TFS Git not seeing any changes for more potential causes.

提交回复
热议问题