zoukankan      html  css  js  c++  java
  • 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:UsersRenaudDocumentsTFSMyOrganisationMySolution

     

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

    C:UsersRenaud

    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!

  • 相关阅读:
    pycharm破解补丁的使用
    C# 解析JSON格式数据
    LINQ to DataSet的DataTable操作
    日期格式化
    vue scoped原理
    vue父子组件生命周期执行顺序
    js判断同一天和同一周
    flex总结
    react-router v4 参数传递
    link标签rel="alternate"属性的作用及用法
  • 原文地址:https://www.cnblogs.com/time-is-life/p/5999354.html
Copyright © 2011-2022 走看看