Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

General "git-credential-libsecret not found" error

The git repo have no LFS enabled, but I was prepared git to use in another clone, so use the git config --global credential.helper that seems the cause of the problem.

Seems the same problem here, but I am using updated git (v2.17.0), so it is not a version problem.

Exemple: after simple git pull the message is

/usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret get: 1: 
/usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret get: 
 /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret: 
 not found

NOTES

There are no git-credential-libsecret file,

sudo ls /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
ls: cannot access '/usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret': No such file or directory
like image 286
Peter Krauss Avatar asked Nov 03 '25 22:11

Peter Krauss


1 Answers

First, make sure to understand where that setting is coming from

git config --show-origin -l

Then you can unset it.
For instance:

git config --global --unset credential.helper

Once the situation is cleaned, you can install back libsecret, as described in "How to bake credential into docker image for git?".

like image 79
VonC Avatar answered Nov 06 '25 22:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!