After opening a git repo in Visual Studio I couldn’t do any git related action. All buttons were disabled and following message was shown on the top of the Team Explorer window:
“The current page is inactive because you are not connected to a Git team project. Connect to a different project”
Clicking on the Connect to a different project link brought me to the Manage connections screen where I tried multiple times to reselect the correct Azure DevOps repo. I even tried to switch the Source Control plugin type but nothing helped.
In the end I tried the good old trick; restarting Visual Studio. After loading my solution again everything worked as expected. Strange…