gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 20:26:14 30 4
gpt4 key购买 nike

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

似乎the same problem here ,但我正在使用更新的 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,如“How to bake credential into docker image for git?”中所述。

关于git - 一般 "git-credential-libsecret not found"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49842895/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com