Update failed
git@gitee.com: Permission denied (publickey).
Could not read from remote repository.
报错的原因:
Git上没有配置SSH Key或者配置的SSH Key失效了
解决重新生成SSH Key
打开 Git Base Here 输入以下代码
1.配置全局用户名
git config --global user.name "username[填写用户名]"
2.配置全局邮箱
git config --global user.email "邮箱如【12345@qq.com】"
3.生成ssh秘钥
ssh-keygen -t rsa -C "配置全局时的邮箱【12345@qq.com】"
4.查看生成的秘钥
cat ~/.ssh/id_rsa.pub
5.秘钥默认生成文件夹位置
.ssh文件夹默认存放位置为:C:\Users\Administrator.ssh
将生成的秘钥添加到用户设置 --》SSH Key即可解决