Visual Studio 2013 always switches source control plugin to Git and disconnect TFS

 

A few days ago, I've been facing a strange behavior with Visual Studio 2013.

 

No matter what solution I was opening, Visual Studio kept switching the source control plugin to Git. I was sure all my solutions were bound to TFS.

 

I didn't understand why Visual Studio was insisting. And when looking for a solution on stackoverflow, every single post were talking about switching or disabling the source control plugin in Tools > Options > Source Control > Plug-in Selection, or saying it was due to the hidden .git folder in the solution folder.

 

But there were no .git folder in my solution, nor in the direct parent folder. And Visual Studio kept changing back the source control to Git.

 

I finally found that it was my fault (who said of course? :-)).

 

The solution was located in :

C:\Users\Renaud\Documents\TFS\MyOrganisation\MySolution\

 

And actually, I finally found there was a .git folder in :

C:\Users\Renaud\

It wasn't supposed to be there, and probably resulted from a wrong command that I wrote earlier. That's why I had a hard time finding it...

 

So, it doesn't matter how deep is your solution... if any of the parent folders contain a .git folder, Visual Studio will assume every solutions contains in a subfolder is under Git source control. Just find it!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值