Get updated branches of GIT in VS code

0
324

In your local repo directory, you should use git fetch -p (or git fetch --prune) command. Then you will find the deleted branches from remote won’t showed in remotes/origin in VS Branches panel.

This is because git fetch won’t check the tracking references exist or not from remote repo. But for git fetch -p, it will check if the tracking references exist or not and delete non-existing ones before fetching.

Reference Link – https://stackoverflow.com/questions/45191234/how-can-i-refresh-the-list-of-remote-branches-in-my-visual-studio-2017-team-expl

LEAVE A REPLY

Please enter your comment!
Please enter your name here