Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear TFS server knowledge of my local version?

Tags:

Our build person was having issues compiling some source code that is checked into our TFS instance.

I was working on some changes that I was not ready to check in so I made a manual backup of my local folder and deleted the contents of my local folder. Then I did a "Get Latest - Specific Version , with overwrite" to ensure I got the latest. And made sure it compiled (it did, the issue was a setup issue on the build machine).

So now if I manually rename folders locally to go back to my version I have the problem that TFS thinks I have all the latest source ... which I don't. Files were changed by another developer but since I did a "Get Latest - Specific Version , with overwrite" it considers my code to be completely up to date.

Questions:

  • Can some how 'tell' tfs that my local versions are not that latest? (I'm thinking that I might to do this with a TFS cmd line util but not really sure which one)

  • Was there a different way I should have done this?

Thanks.

like image 680
Gern Blanston Avatar asked Apr 07 '11 21:04

Gern Blanston


People also ask

How do I delete a local branch in TFS?

Answers. Hi, Right Click the Branch and click delete and then do a Check-in.

How to Add existing project to Team foundation Server?

In the Connect to Team Project dialog box, select the TFS instance you want to connect to, select the team project collection, select the team project you want to add to, and then click Connect. In the Team Explorer window, expand your team project, and then double-click Source Control.


2 Answers

You could delete/remove your local workspace.

Source Control Explorer -> Workspace dropdown -> Workspaces -> Remove

like image 128
p.campbell Avatar answered Sep 20 '22 18:09

p.campbell


If you get specific version of Changeset "1" of your source code, TFS will delete local files, and will believe that you no longer have the latest code in your workspace. Then, when you do a get latest it will actually get the latest.

like image 30
Robaticus Avatar answered Sep 21 '22 18:09

Robaticus