For me the solution was: in windows, search for "credentials", then choose "windows credentials", then remove all ones related to (in my case) "devops". then just started visual studio 2022 that asked me to enter again my devops credentials. After this, I was able again to work with GIT.
Hope it helps :)