简体   繁体   English

Git TFS Visual Studio在没有更改时显示挂起的更改

[英]Git TFS Visual Studio showing pending changes when there are none

I have just cloned a repository and the under the included changes panel in Visual Studio there were 100+ changes being detected. 我刚刚克隆了一个存储库,在Visual Studio中包含的更改面板下,检测到100多个更改。 I did a git reset --hard and that dropped the changes to about 20. 我进行了git reset --hard ,将更改降至约20。

I've also tried the git --reset hard HEAD variant. 我还尝试了git --reset hard HEAD变体。 I've also tried git stash git stash drop and git checkout . 我也尝试过git stash git stash dropgit checkout . A diff on the files shows they haven't been changed. 文件上的差异显示它们尚未更改。

Does anyone know how I might reconcile the false changes or why this might be happening? 有谁知道我如何调和虚假的变化或为什么会发生这种情况?

See this article for dealing with line endings. 有关处理行尾的信息,请参见本文。

https://help.github.com/articles/dealing-with-line-endings/ https://help.github.com/articles/dealing-with-line-endings/

Thanks to @Panagiotis Kanavos 感谢@Panagiotis Kanavos

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

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