title: How Repair lost Connection to Remote Repo on VS TFS
body: <p>Visual Studio Issue.</p>
  
  <p>I am using VS 2013 and its Git capability ion Team Explorer
  I have one branch (master - the origin ) and have been successfully synching up with my remote repository (Hosted in Visual Studio Online)  for over a year</p>
  
  <p>Suddenly I am unable to connect to the remote repo in Team Explorer.  It keeps telling me I need to Clone to my local repo (which, after that happens, shows up as empty.  I can exit VS and go back in on my solution and everything is there.</p>
  
  <p>Also, Team Explorer is telling me that my local repo has no branches (it used to have the branches shown below)</p>
  
  <p>In the git command window, here is the output from get remote show origin</p>
  
  <pre><code>git remote show origin
  * remote origin
    Fetch URL: https://rafino.visualstudio.com/_git/&lt;my repo&gt;
    Push  URL: https://rafino.visualstudio.com/_git/&lt;my repo&gt;
    HEAD branch: master
    Remote branches:
      ExploringGit                tracked
      LayoutRedesign              tracked
      master                      tracked
    Local branch configured for 'git pull':
      master merges with remote master
    Local ref configured for 'git push':
  </code></pre>
  
  <p>Git seems to have no problem with connecting to the remote repo; VS is stymied.  Seems like this may be another of the many bugs in the VS Team Explorer git wrapper.</p>
  
  <p>I am not really comfortable with the git command line and have done all my work in the Team Explorer.</p>
  
  <p>Is there anything I can do short of cloning the remote back into a fresh local repo?  Or would clone on top of the current remote repo work?    It is quite confusing; who knows what is going on under Team Explorer's skirts.</p>
  
  <p>For all its faults, it is still more convenient and preferable to work with VS Team Explorer (at least when it works!) than the git command line.</p>