Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find unadded files in Team Foundation Server

We're using team foundation server for our source control. I frequently put files into my project (under source control) and forget to "add" them as far as TFS is concerned. There are also cases where TFS doesn't pick up new files (copy and paste a file in your project).

Is there a way I can list all of the files that have not been marked as "add" so that I can verify that all of the intended check-ins take place?

This is driving me crazy! We don't have continuous integration set up yet for this project, and I keep missing files. I don't find out until someone asks me where the file in.

In Subversion, this was dead simple.

I know one solution is to checkout a second copy, but that's not really an optimal workaround.

like image 676
Jason Young Avatar asked Jan 27 '09 16:01

Jason Young


People also ask

How to see deleted files in tfs?

From the menu bar choose Tools, Options. On the Options dialog box, navigate to Source Control, Visual Studio Team Foundation Server. Select Show deleted items in the Source Control Explorer, and then choose OK.

How do I permanently delete a file in TFS?

Use the tf destroy command to destroy, or permanently delete, version-controlled files from Team Foundation version control. The destroy action cannot be reversed. You must not destroy files that are still needed.

How do I delete a Team Foundation Server in Visual Studio?

Right-click your project or project suite in the Project Explorer and then click Source Control > Unbind From Team Foundation Server.

How do I delete a folder in source control?

To remove files from source control:choose Source Control > Remove or press Ctrl+R, R. The dialog will list the files that can be removed. In that dialog, you can deselect any files you don't want to remove. Click Remove.


1 Answers

Go to Source Control Explorer, right click on the folder you are interested in and choose compare.

This will show both files that are not added and also files that have been modified without checking out first.

This solution does not require Power Tools

like image 71
Mateusz Mrozewski Avatar answered Sep 21 '22 01:09

Mateusz Mrozewski