1、使用sudo,否则会出现如下问题 git@gitee.com: Permission denied (publickey). fatal: 无法读取远程仓库。 请确认您有正确的访问权限并且仓库存在。 2、不使用sudo