Remote branch in Visual Studio online does not appear in Visual Studio 2015 Team Explorer

I created a new Git repository in Visual Studio online. I cloned on my computer and I added it to the project. After that, I created a new branch called develop on Visual Studio online, and I tried to check its creation of a new local branch, but it does not appear in Team Explorer.

This is my Visual Studio online: enter image description here

And this is Visual Studio 2015 Team Explorer: enter image description here

Why doesn't Team development appear in Team Explorer?

+95
git visual-studio vsts azure-devops
Aug 19 '15 at 17:08
source share
3 answers

Now you can do this in Visual Studio by going to the "Sync" tab ("Sync in the" Command "drop-down menu) and click" Fetch "at the top.

Select Sync from the menu, press fetch

+211
Feb 10 '16 at 10:04
source share

I solved my problem by opening the Git command line (following this instruction ) and doing git fetch to get a new branch.

+18
Aug 19 '15 at 17:28
source share

I had the exact opposite problem (more or less): I could see the branch in Visual Studio, but it was not on the remote server.

An attempt to remove it (from a remote one) led to this error:

Error sending to 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 "fraudulent" remote branch;
  2. VS should now create a local branch from this;
  3. Right-click the local branch, select "Delete 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.

I hope this helps someone who finds themselves in this thread to face the same problem as me.

0
Jun 13 '19 at 12:38 on
source share



All Articles