When using Git in Visual Studio very soon we see that the branches remotes/origin do not automatically sync with the server. Some branches will exist locally when they no longer exist on the server side, which can cause quiproquos. To synchronize these branches with each fetch It's very simple. Just open the Team Explorer window and click Settings , Then set to True PrPrune remote branches during fetch”.
Option Prune remote branches during fetch activated:
Original illustration unavailable
Happy coding 🙂