Skip to content

Error "No credential store has been selected" when using multiple credential helpers #1283

@hickford

Description

@hickford

Git supports multiple credential helpers configured in sequence. I tried the following Git config to use a custom storage helper followed by GCM:

[credential]
	helper = storage
	helper = manager

But GCM gave me error:

fatal: No credential store has been selected.

This refers to the choice of GCM's internal credential store. This error makes sense when GCM is the only Git credential helper, but is superfluous when multiple credential helpers are configured.

Workaround: effectively disable GCM's internal credential store by telling it to cache with timeout zero.

[credential]
	helper = storage
	helper = manager
	credentialStore = cache
	cacheoptions = --timeout 0

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp-wantedThe core maintainers aren't planning to build this, but we would welcome a community contribution!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions