【发布时间】:2021-06-28 23:36:15
【问题描述】:
我刚刚生成了一个 SSH 密钥并将其添加到我在 Linux Mint 终端中的 ssh-agent 中。然后我复制了.pub 文件的内容并粘贴到GitHub 用户范围的SSH 密钥框中。我打电话给git pull,它可以工作。我打电话给add 和commit,一切似乎都很好。
然后我打电话给git push -u origin main,我得到了
ERROR: Permission to name/repo.git denied to deploy key
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】: