一、查看本地机器上配置了正确的 SSH 密钥
bash
ls -al ~/.ssh

确保你有一个命名为 id_rsa(私钥 )和 id_rsa.pub(公钥)的文件。
如果没有就重新生成SSH密钥
bash
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
生成的秘钥在C盘 C:\Users\user.ssh,user是计算机的名称
二、复制公钥内容到gitee

复杂公钥key内容,粘贴到gitee个人配置中

三、git的全局配置
删除全局的name和emai
bash
git config --global --unset user.name
git config --global --unset user.email
重新设置name和email
bash
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"