Refresh git remote branches in Visual Studio

January 17, 2017

Visual Studio doesn’t always refresh the git remote/published branches in the Branches View.

My solution to force a sync in Visual Studio is calling the git remote “prune” command ( This command will immediately detect new remote branches or remove the “stale” branches. Instant update in Visual Studio.