一般 "git-credential-libsecret not found" 错误

General "git-credential-libsecret not found" error

git 存储库没有启用 LFS,但我准备 git 在另一个克隆中使用,所以使用 git config --global credential.helper 似乎是问题的原因。

好像是,不过我用的是更新的git(v2.17.0),所以不是版本问题。

示例:在简单的 git pull 之后,消息是

/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

注意事项

没有git-credential-libsecret个文件,

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

首先,确保了解该设置的来源

git config --show-origin -l

然后你就可以取消设置了。
例如:

git config --global --unset credential.helper

清理完情况后,您可以重新安装 libsecret,如“”中所述。