Configuring Git Credential Manager for Windows: Utilising OAuth or Username and App Password

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

Summary

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

Environment

Windows

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 Username and App Password explicitly. The steps are as follows:

  1. Open the Command Line.

  2. Execute the following commands:

1 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 Username and App Password

Example OAuth:

1 git config --global credential.bitbucketAuthModes "oauth"

Example Username and App Password

1 git config --global credential.bitbucketAuthModes "basic"
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.