Configuring Git credential manager for Windows: utilizing OAuth or username and API token

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

This guide provides instructions for configuring Git Credential Manager for Windows to utilise OAuth or Username and API token.

Solution

Before proceeding with this guide, ensure that Git Credential Manager is pre-installed on your machine.

As per the official documentation, users can configure Git Credential Manager to utilise OAuth or Bitbucket username and API token explicitly. The steps are as follows:

  1. Open the Command Line.

  2. Execute the following commands:

git config --global credential.bitbucketAuthModes "<AuthenticationType>"

ℹ️ Change the <AuthenticationType> to the following credential types:

Value

Authentication type

oauth

Use this to authenticate using OAuth

basic

Use this to authenticate via Bitbucket username and API token

Example OAuth:

git config --global credential.bitbucketAuthModes "oauth"

Example Bitbucket username and API token:

git config --global credential.bitbucketAuthModes "basic"

Updated on August 21, 2025

Still need help?

The Atlassian Community is here for you.