Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Remove Items from Excluded Changes

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?

like image 689
Mohsen Avatar asked Jan 21 '16 06:01

Mohsen


People also ask

How do you clear pending changes in VS code?

In Solution Explorer, the Pending Changes Window, or Source Control Explorer, select one or more items, open their context menu and choose Undo or Undo Pending Changes. To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change.

How do I remove a solution in Visual Studio?

To delete a solutionIn Solution Explorer, select the solution you want to delete. On the File menu, click Close Solution. In Microsoft Windows Explorer, locate and select the files associated with the solution you want to delete. On the File menu, click Delete.

What is undo pending changes in TFS?

"Undo pending changes" will undo all the changes that you made to the file and restores the file to the version of the file which you started editing/making changes. "Get Specific Version" (with both overrides) will get the latest version of the file from the TFS server.


4 Answers

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

like image 179
DerApe Avatar answered Nov 17 '22 11:11

DerApe


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'

like image 40
Bassl Kokash Avatar answered Nov 17 '22 10:11

Bassl Kokash


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

like image 2
bRySaGeeK Avatar answered Nov 17 '22 11:11

bRySaGeeK


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

like image 1
Exorsyst Avatar answered Nov 17 '22 12:11

Exorsyst