简体   繁体   English

VS2015更新2 Git撤消不起作用

[英]VS2015 Update 2 Git undo dont work

I update my VisualStudio 2015 to Update 2 and now I can't undo my local changes with project on TFS git repository. 我将VisualStudio 2015更新到Update 2,现在我无法使用TFS git存储库上的项目撤消我的本地更改。 When I click to Undo from menu and confirm undo nothing happens. 当我从菜单中单击撤消并确认撤消时没有任何反应。 In Source Control output window it says undo was completed successfully. 在Source Control输出窗口中,它表示撤消已成功完成。 When I open Git CMD and did same think file was undoing and in VisualStudio I see lock flag before file. 当我打开Git CMD并做同样的思考文件撤消时,在VisualStudio中我看到文件前的锁定标志。

Does anybody know what is wrong? 有人知道出了什么问题吗?

Thanks 谢谢

I'm fairly certain this is a bug in Visual Studio 2015 (at least Update 2). 我很确定这是Visual Studio 2015中的一个错误(至少是Update 2)。 Fortunately there is an easy workaround: after attempting the undo and seeing the files remain, simply "stage" the files you are trying to undo, and then they should disappear from the list of changes as expected. 幸运的是,有一个简单的解决方法:在尝试撤消并看到文件保留后,只需“暂存”您尝试撤消的文件,然后它们就会按预期从更改列表中消失。

Update: I just had a similar issue with 2017 (v15.8.3) where thousands of files were stuck under "Changes" even though they were unmodified. 更新:我在2017年(v15.8.3)遇到了类似的问题,即使它们未经修改,仍有数千个文件被困在“更改”下。 Staging them all fixed the issue and only the truly modified files were staged. 暂存它们都解决了问题,只有真正修改过的文件才被暂存。

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

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