使用 https 的 Git 克隆在我的 mac 机器上不起作用,出现以下错误:
akshaybandivadekar@Akshays-MacBook-Pro codebase % git clone https://github.com/lodash/lodash.git
Cloning into 'lodash'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但是使用 ssh 它可以工作
git clone [email protected]:lodash/lodash.git
我已参考此文档进行 ssh 密钥设置: https ://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-到 ssh 代理