![如何使用 gpg-agent/git-credentialmanager 删除身份验证以将其发送到公共存储库?](https://linux22.com/image/216660/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20gpg-agent%2Fgit-credentialmanager%20%E5%88%A0%E9%99%A4%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E4%BB%A5%E5%B0%86%E5%85%B6%E5%8F%91%E9%80%81%E5%88%B0%E5%85%AC%E5%85%B1%E5%AD%98%E5%82%A8%E5%BA%93%EF%BC%9F.png)
我有一个最近公开的 azure devops 存储库。在它是私有的之前,我使用了 git 凭证管理器和 gpg-agent。
如果我想推送我的更改,我会收到错误:
$ git push
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXX to authenticate.
我已按照说明进行操作并得到:
fatal: Failed to encrypt file '/home/user/.password-store/git/https/dev.azure.com/<file>.gpg' with gpg. exit=2, out=, err=gpg: rsa3072/YYYYYYY: skipped: No public key
gpg: [stdin]: encryption failed: No public key
我该如何解决这个问题,以便能够再次将某些内容推送到存储库?