I had a similar issue with Visual Studio 2022, where the branch, edits and changesets were not showing anymore after an update.
I develop with TFS version control and GIT so I need both version controls from time to time. For me the issue with the missing git information in the status bar was fixed by going to the Team Explorer -> Manage Connections, connect to the TFS repository and then to the git repository again.