Similar to Git keeps prompting me for a password but specifically on macOS with Azure DevOps
I use git credential manager which I had installed using Homebrew as follows
brew tap microsoft/git
brew install --cask git-credential-manager-core
The relevant settings in git config --global --list are
credential.helper=
credential.helper=/usr/local/share/gcm-core/git-credential-manager-core
credential.helper=cache --timeout=3600000
credential.https://dev.azure.com.usehttppath=true
Within a few seconds it seems to allow some operations, but after a few minutes it brings up the browser to ask for credentials.