I was facing the same issue in VS 2022 and apparently upgrading to Version 17.12.3 resolved it.
I also added Visual Studio as Diff Tool and Merge Tool as mentioned in Bravo Yeung's answer, by going to Tools > Options > Source Control > Git Global Settings See below picture