If your git library has an address like this (ssh:://***), push will fail 'username does not match previous request (-1)' This is a very low-level bug, very difficult to experience, xcode 13,14,15 version same problem!
[core]
bare = false
repositoryformatversion = 0
filemode = true
ignorecase = true
precomposeunicode = true
logallrefupdates = true
[remote "origin"]
url = ssh://git_user@fffff:22/volume1/code/testddd.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master