问题
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