问题:gitee一直https提示403
- 尝试使用ssh进行连接
首先需要在本地配置你的user.name 及user.emial
git config --global user.name "xxxx"// 配置user.name
git config --global user.email "xxxx"// 配置user.email
- 查看所有的已配置项
git config --list //
- 配置公钥和密钥
ssh-keygen -t rsa -C “xxxx@qq.com”
- 查看公钥
// cat指的是查看某个文件
cat ~/.ssh/id_rsa.pub //
复制公钥ssh-rsa xxxxxxxxxx后, 添加到gitee账号上
具体地址: gitee --> 设置 -> 安全设置 -> ssh公钥添加后就可以正常的 git clone xxxxxxxxxx 执行代码了