报错:Please make sure you have the correct access rights and the repository exists.
- 翻译:请确保您拥有正确的访问权限并且存储库存在。
- 个人原因:git账号登录错误导致公钥错误。
- 解决:
- 删除.ssh文件夹下的所有文件;
- 在桌面点击右键,选择Git Bash Here,打开git命令行;
- 设置用户名:git config --global user.name ‘xxx’
- 设置用户名邮箱:git config --global user.email ‘xxx’
- 查看设置:git config --list
- 继续输入命令:修改后面的邮箱即可:ssh-keygen -t rsa -C ‘xxx’
- 打开gitlab设置密钥,将.ssh文件夹下的id_rsa.pub粘贴即可;
- 图示