简体   繁体   English

为什么VS2015在SourceTree不显示时显示未决更改?

[英]Why is VS2015 showing pending changes while SourceTree doesn't?

I've just started working on a new project where we use VS2015 with TFS and Git for our repositories. 我刚刚开始从事一个新项目,在该项目中我们将VS2015与TFS和Git一起用于我们的存储库。 Several times now Visual Studio has shown me a pletora of files checked out with pending changes, while most of these files don't have any changes. 现在,Visual Studio多次向我展示了检出的未决更改的大量文件,而其中大多数文件没有任何更改。

I thought about line endings at first, but then I noticed that SourceTree only showed the files that actually did have changes. 我最初考虑的是行尾,但后来我注意到SourceTree仅显示实际上确实有更改的文件。 Running git -diff also doesn't display these unchanged files, only Visual Studio does. 运行git -diff也不会显示这些未更改的文件,只有Visual Studio会显示。

Something else I noticed after my last commit (done in SourceTree), the files that I committed where still displayed as having pending changes in Visual Studio. 在上次提交(在SourceTree中完成)之后,我注意到的其他内容是,我提交的文件在Visual Studio中仍显示为具有挂起的更改。 After restarting VS the files are still on the pending changes list. 重新启动VS后,文件仍在待处理的更改列表中。

One colleage has the same issue, while three others have never experienced this. 一个学院有相同的问题,而其他三个学院则从未经历过。 All four of them have been working on this project for much longer than me. 他们四个人从事这个项目的时间都比我长。

I've spend a few hours googling for answers and found many cases that seem similar at first but none have a working solution for me. 我花了几个小时来寻找答案,发现很多情况一开始看起来很相似,但是没有一个对我有用。

Does anyone have an idea of what may be causing this issue for me and what I might do to prevent it? 有谁知道可能是什么原因导致我这个问题,以及我应该怎么做才能防止它发生?

Any help would be greatly appreciated. 任何帮助将不胜感激。

EDIT: added some specs 编辑:添加了一些规格
OS: Win Server 2012 R2 Standard (v. 6.3.9600) 作业系统:Win Server 2012 R2 Standard(v。6.3.9600)
VS: VS Enterprise 2015 (v. 14.0.23107.0 D14REL) VS:VS Enterprise 2015(v。14.0.23107.0 D14REL)
SourceTree: 2.1.11.0 源码树:2.1.11.0

Thanks, 谢谢,
elloco elloco

Thanks to Edward Thomson for suggesting to install update 3 for VS2015, this seems to have done the trick for me. 感谢Edward Thomson建议安装VS2015的更新3,这似乎对我有用。 No more unchanged files in my list of changes. 我的更改列表中没有其他未更改的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM