Something small and easy but useful.
I always google it when I setup a new Dev environment.
If you are also working with Visual Studio and its built in GIT integration, then you have noticed that the remote branches shown under the Branches tree in the Team Explorer, are only increasing. Even some of the branches have been deleted from the remote server that have not been reflected to the tree.
This can be fixed by an easy configuration.
Open Team Explorer, then go to Home -> Settings -> Repository Settings and set the “Prune remote branches during fetch” to True.
Then press Update.
