Remote branch on Visual Studio online doesn't appear on Visual Studio 2015 Team Explorer Remote branch on Visual Studio online doesn't appear on Visual Studio 2015 Team Explorer git git

Remote branch on Visual Studio online doesn't appear on Visual Studio 2015 Team Explorer


You can now do this in Visual Studio by going to the Synchronisation tab (Sync in the Team drop down menu) and clicking Fetch at the top.

Choose Sync from the menu, hit fetch


I have solved my problem opening a Git Command Prompt (following this instructions), and doing a git fetch to retrieve the new branch.


I had the exact opposite issue (more or less): I could see the branch in Visual Studio, but it wasn't on the remote server.

Trying to delete it (from remote) yielded this error:

Error encountered while pushing to the remote repository: Git failed with a fatal error. PushCommand.ExecutePushCommand

Here's how to fix it (tested in VS 2017):

  1. In Visual Studio, double click on your "rogue" remote branch;
  2. VS should have now created a local branch from it;
  3. Right click on the local branch, select "Unset remote branch";
  4. Right click on the local branch, select "Push branch";
  5. You should now have a true corresponding remote branch;
  6. Delete the remote branch, then the local branch.

Hopefully it will help someone who ends up on this thread having the same issue as me.