kumar
kumar

Reputation: 9387

Newly created git branches in Azure DevOps not showing up in Visual Studio 2017

I had cloned a git project hosted in Azure DevOps using Visual Studio 2017. Then a branch was created in the Azure Devops portal. Now I do not see newly created branch in Visual Studio. What do I need to do in Visual Studio 2017 to sync the newly crated branch to show up in VS 2017?

Upvotes: 3

Views: 15109

Answers (3)

Martin Bring
Martin Bring

Reputation: 1246

Fetch was enough for me, then I could see the remote branch.

Upvotes: 0

Bob Ben
Bob Ben

Reputation: 36

  1. Make sure your local git repository is connected to Azure DevOps.
  2. Click Sync --> Click Pull to get all changes from remote git repository.
  3. Back to Home and click Branches, you will see local branches and remote branches at here. Double click your remote branch, then you can have the local branch and use it.

Upvotes: 1

VonC
VonC

Reputation: 1323095

The Azure devops documentation suggests a sync:

https://learn.microsoft.com/en-us/azure/devops/repos/git/_img/pulling/synchronization-menu.png?view=azure-devops

Visual Studio uses the Sync view in Team Explorer to fetch changes. Changes downloaded by fetch are not applied until you Pull or Sync the changes.

Note that showing all branches history is still (Q2 2019) a pending feature request...

Upvotes: 7

Related Questions