How to Remove Items from Excluded Changes

与世无争的帅哥 提交于 2020-07-20 10:02:52

问题


I added some files to my Solution and then deleted after some code tests. Now, the items are still in Excluded Changes of Team Explorer. How can I refresh Visual Studio Excluded Changes panel so that the removed items go away?


回答1:


Depending on your version of Visual Studio you will have a pending changes window (probably under the Team Explorer tab). Just select the deleted file, open the context menu and select Undo...

For more information also have a look at https://msdn.microsoft.com/en-us/library/ms245456(v=vs.100).aspx




回答2:


Select the file(s) from the 'Team Explorer' tab, Under the 'Excluded Changes' Open context menu on any of those files, and click on 'Open is Source Control Explorer', and there you could open the context menu again on those files and select 'Undo Pending Changes'




回答3:


Just right-click the pending change in Team Explorer, select "open in Source Control Explorer", find the item, then right-click to delete.




回答4:


Open excluded changes, do not promote but right-click -> select all -> delete from disk



来源:https://stackoverflow.com/questions/34917005/how-to-remove-items-from-excluded-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!