前言
SSL certificate problem: unable to get local issuer certificate
这是我在用pycharm向github提交代码遇到的问题,这些操作的前提是你完成了
- git的下载
- 在git bash here设置用户名,邮箱
#设置用户信息 ,邮箱
git config --global user.name “yourname”
git config --global user.email “youremil@qq.com”
解决方法
在git中输入代码,记得回车三次
ssh-keygen -t rsa -C "youremail@example.com"
打开~/.ssh/id_rsa.pub(在Windows中为C:\Users\name.ssh\id_rsa.pub)
在记事本中打开(id_rsa文件也可以)
复制内容,然后在GitHub的SSH和GPG密钥中创建新的SSH密钥,粘贴内容并保存