Skip to content

Add a default fallback to git-credential-cache or git-credential-store #2547

Description

@mdindoffer

Background

Many Linux distros don't come with git-credential-libsecret (or any other manager) by default.
Git is often bundled only with the built-in memory cache or store options, so git-credential-cache and git-credential-store.
This is true for example on the latest Linux Mint 22.3 (based on Ubuntu LTS).

Current state

The UI currently has a checkbox preference to use git-credential-libsecret over git-credential-manager, but neither of those are present out of the box, and all the auth store operations silently fail, and users are forced to reauth every time they interact with upstream.
Only when you look into the logs you will see errors like:

git: 'credential-libsecret' is not a git command. See 'git --help'.

Request

Please add a default fallback to the widely-available store or cache credential helpers.
The store option is preferred, becuase the default cache is quite short-lived anyway.
This will clear out a lot of beginner confusion, as is evident from issue reports such as #2263 , issue #1914, issue #976, issue #1560.

Metadata

Metadata

Assignees

Labels

not-plannedIt's not planned in the future

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions