Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using TFS source control - how to remove files

Tags:

tfs

tfs-2010

I am a lone developer, and I am now using TFS 2010, having until recently used VSS. I have not found it easy to get any books for beginners to help me use this. So I have now got my project in source control. But when I check in I get references to a number of files that I no longer use. How do I remove files from the TFS Source Control repository?

So in the example below, you can see lots of files from different projects that I do not want to see.

enter image description here

like image 207
arame3333 Avatar asked Apr 09 '26 12:04

arame3333


2 Answers

Click on the last icon that looks like a solution (.sln) file icon (last icon on the top vertical row). It's right next to the refresh icon and just above the "Comment" box. That should clear all non-related project files, and only show the files on your current project.

like image 158
Banisa Avatar answered Apr 12 '26 02:04

Banisa


In Source Control Explorer in Visual Studio, simply right-click on files and folders and choose "Delete". Then right-click again and choose "Check-in pending changes".

like image 36
LordHits Avatar answered Apr 12 '26 01:04

LordHits



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!