如何修复 git credential manager core: git fatal: No credential backing store has been selected.
问题:
安装 git credential manager core 后,你看到此错误消息:
error_message.txt
fatal: No credential backing store has been selected.
将 GCM_CREDENTIAL_STORE 环境变量或 credential.credentialStore Git 配置设置设置为以下选项之一:
secretservice : freedesktop.org Secret Service(需要图形界面)
gpg : GNU `pass` 兼容的凭证存储(需要 GPG 和 `pass`)
cache : Git 的内存凭证缓存
plaintext : 以纯文本文件存储凭证(不安全)
有关更多信息,请参见 https://aka.ms/gcmcore-linuxcredstores。解决方案
如果你在图形计算机上,运行
set_secretservice.sh
git config --global credential.credentialStore secretservice在服务器上,如果需要自动化即无密码访问,使用
set_plaintext.sh
git config --global credential.credentialStore plaintext注意这是不安全的,因为所有密码都存储在纯文本文件中。
Check out similar posts by category:
Git
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow