每天早晨,当我启动PC并尝试执行git操作时,都会遇到相同的错误:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
当我进入公司的Bitbucket帐户设置时,删除存在的SSH密钥,并在~/.ssh/id_rsa.pub
中上传 exact 相同的密钥,这样我就可以执行git操作,而不会出现问题。 / p>
这是为什么?