When you first connect to a Git Repository in Visual Studio, you are going to be defaulted to cloning the Master remote branch. But what if you want to work on a different branch? You’ll need to clone that branch before you start working on it. If you look at the branches tab in Team Explorer, you probably only see the one branch and see no sign of the other branches:
Well, before you can see the branches locally, you need to create a local tracking branch for the remote branch. You could do this with command-line: git branch dev –track origin/dev
And click on Create Branch.
If you want to get started with Git and be successful with it, while staying in Visual Studio, I created a Pluralsight course that you may want to check out: Git for Visual Studio Developers.