Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have created a new Git repository on Visual Studio online. I have cloned on my computer and I have added it a project. After that, I have created a new branch called develop on Visual Studio online, and I have tried to check it out creating a new local branch but it doesn't appear on 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 develop branch doesn't appear on Team Explorer?

like image 270
VansFannel Avatar asked Oct 19 '22 16:10

VansFannel


People also ask

How do I find the remote branch in Visual Studio?

Find the remote branch in remotes -> origin , then double-click that branch to get it selected locally.

Why git branch is not showing in VS Code?

So you manually create a branch from the Git itself. After cloning the project to your computer, If you open the project with Visual Studio Code, and when you try to change the branch, you might see your created branch is not in the list. This is a common issue and usually happens in VS Code IDE.

How do I sync a branch in Visual Studio?

For more information on Sync, see Use git fetch, pull, push and sync for version control in Visual Studio. Open the Team Explorer and open the Sync view. Then select the Pull link under Incoming Commits to pull remote changes and merge them into your local branch.


1 Answers

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

like image 322
Dr Rob Lang Avatar answered Oct 22 '22 05:10

Dr Rob Lang