Lesstep
Bitbucket Cloud · Git Credential Manager · Checked November 22, 2026

Git Credential Manager on Linux: "No credential store has been selected"

Git Credential Manager (GCM) needs a place to keep the token you sign in to Bitbucket with, and on Linux it does not choose one for you. Tell it with one setting: git config --global credential.credentialStore secretservice on a desktop with a keyring, cache to keep the token in memory for 15 minutes, gpg to use pass, or plaintext as the last resort. Windows and macOS have a default (the Windows Credential Manager and the Keychain), so there the message points to a setting someone changed.

What it looks like

fatal: No credential store has been selected.

This is the current wording in GCM's source (CredentialStore.cs), followed by a line that tells you to set GCM_CREDENTIAL_STORE or credential.credentialStore. Older versions (Git Credential Manager Core, 2021) said "No credential backing store has been selected"; the fix is the same. GCM's configuration page says the default of credential.credentialStore is wincredman on Windows, keychain on macOS, and "unset on Linux". It shows up on the first git push or git pull over HTTPS to Bitbucket after GCM is installed on a Linux machine, a server, a container or WSL. The token is created in Bitbucket (what Git sends); the store only decides where GCM keeps it afterwards.

GCM's store is for Git only: Pull Request Inbox for Bitbucket, a plugin for JetBrains IDEs, keeps its own Atlassian API token in the IDE's password safe and does not use GCM, so the review inbox works while the Git side is being set up.

Pick a store

Set it for one session with export GCM_CREDENTIAL_STORE=<name>, or for good in Git's configuration:

git config --global credential.credentialStore <name>
NameUse it whenWhat it needs, and the catch
secretserviceA Linux desktopA D-Bus session bus and a Secret Service provider such as GNOME Keyring or KWallet. It does not work over a plain SSH login to a server.
gpgA server or WSL where you can run passgpg, pass and a GPG key pair. Create the key with gpg --gen-key, then pass init <gpg-id>.
cacheYou accept signing in againKept in memory by Git's credential cache, 900 seconds by default. Change it with git config --global credential.cacheOptions "--timeout 300".
plaintextNothing else worksThe token is written unprotected to ~/.gcm/store (override with GCM_PLAINTEXT_STORE_PATH). GCM's page calls it not secure and recommends another option; restrict access to that folder.
noneYou want nothing savedStores nothing: Git asks every time.

On a desktop:

git config --global credential.credentialStore secretservice

Then pull or push again. GCM asks you to sign in to Bitbucket and saves the result in the store you chose. On a server with no browser, the token you create in Atlassian's account page is the password, and bitbucketAuthModes keeps GCM from opening a browser window for OAuth (its configuration page: "This setting only applies to Bitbucket.org"):

git config --global credential.bitbucketAuthModes basic

To check what is set, and where the setting comes from:

git config --show-origin --get-all credential.credentialStore
git credential-manager --version

If Windows or macOS shows it

A default exists there, so something set the store to a value that cannot work: look for a GCM_CREDENTIAL_STORE environment variable ($env:GCM_CREDENTIAL_STORE in PowerShell, echo $GCM_CREDENTIAL_STORE in a Unix shell) and for a credential.credentialStore line with the command above. The page lists wincredman as the default that "doesn't work over network/SSH sessions" on Windows, where dpapi is the alternative.

In the IDE

Pull Request Inbox for Bitbucket, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, does not use Git Credential Manager: it signs in to Bitbucket's API with your Atlassian email and an API token (or an access token), kept in the IDE's password safe. Git's own pull and push still use whichever store you set above. The review inbox, diffs and discussions are free; approving, commenting and merging are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Sources

Bitbucket and Atlassian are trademarks of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Atlassian, JetBrains or the Git Credential Manager project.

More: Git Credential Manager's OAuth before 3.0.0 is blocked on November 30, 2026 · "credential-manager-core is not a git command" · "remote: Invalid username or password" · 日本語