• 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!

  • 相关阅读:
    Jasper_crosstab_Parameter_Crosstab Header
    Jasper_style
    Linux_hadoop_install
    Linux_jdk path (execute and install)
    Linux_install mod_ssl openssl apache
    Linux_install jdk
    Linux_service cloudera-scm-server start failed
    Linux_ERROR 1045 (28000): Access denied for user 'root'@'localhost'
    Jasper_table_Cloud not resolve style(s)
    Linux_shell条件判断if中的-a到-z的意思
  • 原文地址:https://www.cnblogs.com/time-is-life/p/5999354.html
Copyright © 2020-2023  润新知