Visual Studio: Git Team Explorer does not show any changes

前端 未结 9 1521
野趣味
野趣味 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:23

    Unfortunately, none of the above worked for me, but after some time, this was my solution:

    1. Find your .git folder for your repository.
    2. Locate and delete the 'index.lock' file inside.
    3. Restart Visual Studio.

    I am using Visual Studio 2017, but I hope this helps someone!

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-05 06:32

    Make sure your files are not encrypted. I was using Windows workfolders and new files are encrypted. Git in VS is unable to see them.

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