TFS Remove Local Files for Branch

Since I am the build manager for my team and have to touch every release I get a lot of files on my hard drive that I don’t need anymore.  I mean when we are on release 15.2 do I really need a local copy of release 8 or 10, or 14 for that matter.  I used to just delete the local copies, but TFS still thinks you have them and starts acting up.  Of course there is a way to delete them via Source Control Explorer but it is not very obvious.  I found the solution on a post titled “TFS Top Tip #11 –Removing source control files from your local file system” by Martin Woodard.

It appears that if you do a Get Specific Version and specify Changeset of 1 the files will be deleted locally and the server will know it.  Changeset 1 is a special Changeset  that only contains the root ($/).  So by getting Changeset 1 you basically get nothing, there were no files in the source control tree when this Changeset was created.

This is definitely not as easy a deleting a branch in git, but I does help me keep my release folders cleaned up. Thanks Martin for posting this.

Calendar

<<  July 2014  >>
MonTueWedThuFriSatSun
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Month List

AuthorList