Search code examples
gitvisual-studiovisual-studio-2012tfstfvc

TFVC $tf folder recreated after source control in converted to GIT


Everything in my VS2015 project was checked in a TFVC (Team Foundation Version Control) repository in TFS. The project is later checked into another GIT repository in the same TFS server. When I check out from the new GIT repository, a hidden $tf is created even no files are changed. This prevents me from switching to another branch. I manually deleted tfs, bin, obj, packages folders on the TFS repository. With Visual Studio 2015 Team Explore, I did a fresh clone to a new workspace folder. I added a .gitignore file with \bin, \obj, $tf in it. The Team Explorer still lists changes in those folders even nothing is changed. I deleted the original workspace folder, but it gets recreated every time. The Does anyone know what is going on? Thanks.


Solution

  • I would bet that you still have a workspace mapped to the same folder for TFVC. Delete the workspace either via Visual Studio itself or with the tf workspace command.