Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS error: item has pending changes but does not exist locally

The following TFS error occurs using Visual Studio 2013 to interface to TFS (TFS apparently also carries the version of Visual Studio with it):

item has pending changes but does not exist locally

This seems very wrong, as one chief purpose of TFS is to give me items that do not exist locally.

Sometimes (but not always) this occurs after a delete, and the purpose is to restore / update the file from the server.

like image 471
JosephDoggie Avatar asked Dec 12 '14 15:12

JosephDoggie


People also ask

How do I get rid of pending changes in TFS?

To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change. In the Undo Pending Changes dialog box, make sure the changes you want to undo are selected, and then choose Undo Changes.

How do I see pending changes in TFS?

Select that folder in TFS explorer and right click. you will see the option "Checkin Pending changes.." Show activity on this post. In the team explorer open up the source control tab, then right click on the route folder and select Check in Pending Changes.

How do I enable pending changes in Visual Studio 2019?

We can set keyboard shortcuts CTRL + ], P to quickly navigate to "Pending Changes", then select the file in the list with shift + double-click to compare them. To specify or customize keyboard shortcuts in VS: Tools > Options > Environment > Keyboard , then enter "View.


2 Answers

In the Solution Explorer:

  • right click on file that gives error=>Source Control=>Undo Pending Changes.

  • right click on file=>Add file to Source control.

Now you are good to go.

like image 130
Paras Sachapara Avatar answered Oct 30 '22 05:10

Paras Sachapara


Right click on the problematic file in Solution Explorer and click add item to source control.

like image 41
Iván Kollár Avatar answered Oct 30 '22 04:10

Iván Kollár