Two suggestions. Make sure you have the latest version of VS 2022 installed. (There have been a few updates). I would also try and sign into your visual studio account again in VS 2022
Also VS 2022 supports have projects connected to more than one git repo. Is it possible there are 2 repos in your solution?