Bitbucket#
Cannot authenticate#
This error occurs when Git tries to authenticate with a Bitbucket Data Center server using OAuth, but the correct authentication mode is not configured. The Git Credential Manager expects an explicit auth mode setting and fails without it. More details in this thread.
Solution#
Run the following Git configuration to set the correct auth mode globally:
git config --global credential.bitbucketAuthModes "generic"
An alternative is also to try “oauth” instead of “generic”. To share this configuration with your team, use the centralized Git configuration in Anchorpoint.